132 calls to Html::escape()
- AccountForm::form in core/
modules/ user/ src/ AccountForm.php - Gets the actual form array to be built.
- AssertBreadcrumbTrait::assertBreadcrumbParts in core/
modules/ system/ tests/ src/ Functional/ Menu/ AssertBreadcrumbTrait.php - Assert that a trail exists in the internal browser.
- AssertContentTrait::assertEscaped in core/
tests/ Drupal/ KernelTests/ AssertContentTrait.php - Passes if the raw text IS found escaped on the loaded page, fail otherwise.
- AssertContentTrait::assertNoEscaped in core/
tests/ Drupal/ KernelTests/ AssertContentTrait.php - Passes if raw text IS NOT found escaped on loaded page, fail otherwise.
- AssertContentTrait::assertNoRaw in core/
tests/ Drupal/ KernelTests/ AssertContentTrait.php - Passes if the raw text is NOT found on the loaded page, fail otherwise.
- AssertContentTrait::assertRaw in core/
tests/ Drupal/ KernelTests/ AssertContentTrait.php - Passes if the raw text IS found on the loaded page, fail otherwise.
- AttributeArray::__toString in core/
lib/ Drupal/ Core/ Template/ AttributeArray.php - Implements the magic __toString() method.
- AttributeBoolean::__toString in core/
lib/ Drupal/ Core/ Template/ AttributeBoolean.php - Implements the magic __toString() method.
- AttributeString::__toString in core/
lib/ Drupal/ Core/ Template/ AttributeString.php - Implements the magic __toString() method.
- AttributeTest::providerTestAttributeValues in core/
tests/ Drupal/ Tests/ Core/ Template/ AttributeTest.php - AttributeValueBase::render in core/
lib/ Drupal/ Core/ Template/ AttributeValueBase.php - Returns a string representation of the attribute.
- BigPipeStrategy::createBigPipeJsPlaceholder in core/
modules/ big_pipe/ src/ Render/ Placeholder/ BigPipeStrategy.php - Creates a BigPipe JS placeholder.
- BigPipeStrategy::createBigPipeNoJsPlaceholder in core/
modules/ big_pipe/ src/ Render/ Placeholder/ BigPipeStrategy.php - Creates a BigPipe no-JS placeholder.
- BlockController::demo in core/
modules/ block/ src/ Controller/ BlockController.php - Returns a block theme demo page.
- BrowserHtmlDebugTrait::formatHtmlOutputHeaders in core/
tests/ Drupal/ Tests/ BrowserHtmlDebugTrait.php - Formats HTTP headers as string for HTML output logging.
- CategoryAutocompleteController::autocomplete in core/
modules/ block/ src/ Controller/ CategoryAutocompleteController.php - Retrieves suggestions for block category autocompletion.
- CategoryAutocompleteTest::testAutocompleteSuggestions in core/
modules/ block/ tests/ src/ Unit/ CategoryAutocompleteTest.php - Tests the autocomplete method.
- CommentAdminTest::testApprovalAdminInterface in core/
modules/ comment/ tests/ src/ Functional/ CommentAdminTest.php - Tests comment approval functionality through admin/content/comment.
- CommentAdminTest::testApprovalAdminInterface in core/
modules/ comment/ tests/ src/ Functional/ Views/ CommentAdminTest.php - Tests comment approval functionality through admin/content/comment.
- CommentAdminTest::testCommentedEntityLabel in core/
modules/ comment/ tests/ src/ Functional/ Views/ CommentAdminTest.php - Tests commented entity label of admin view.
- CommentSelection::getReferenceableEntities in core/
modules/ comment/ src/ Plugin/ EntityReferenceSelection/ CommentSelection.php - Gets the list of referenceable entities.
- CommentTokenReplaceTest::testCommentTokenReplacement in core/
modules/ comment/ tests/ src/ Functional/ CommentTokenReplaceTest.php - Creates a comment, then tests the tokens generated from it.
- CommonTestController::destination in core/
modules/ system/ tests/ modules/ common_test/ src/ Controller/ CommonTestController.php - Prints a destination query parameter.
- ConfigDraggableListBuilderTest::testDraggableList in core/
modules/ config/ tests/ src/ Functional/ ConfigDraggableListBuilderTest.php - Tests draggable lists.
- ConfigImporterTest::testSecondaryWriteSecondaryFirst in core/
tests/ Drupal/ KernelTests/ Core/ Config/ ConfigImporterTest.php - Tests that secondary writes are overwritten.
- ConfigTranslationOverviewTest::testMapperListPage in core/
modules/ config_translation/ tests/ src/ Functional/ ConfigTranslationOverviewTest.php - Tests the config translation mapper page.
- ConfigTranslationUiModulesTest::testBooleanFieldConfigTranslation in core/
modules/ config_translation/ tests/ src/ Functional/ ConfigTranslationUiModulesTest.php - Tests the translation of a boolean field settings.
- ContactPersonalTest::testSendPersonalContactMessage in core/
modules/ contact/ tests/ src/ Functional/ ContactPersonalTest.php - Tests that mails for contact messages are correctly sent.
- DefaultSelection::getReferenceableEntities in core/
lib/ Drupal/ Core/ Entity/ Plugin/ EntityReferenceSelection/ DefaultSelection.php - Gets the list of referenceable entities.
- DiffFormatter::_added in core/
lib/ Drupal/ Core/ Diff/ DiffFormatter.php - DiffFormatter::_context in core/
lib/ Drupal/ Core/ Diff/ DiffFormatter.php - DiffFormatter::_deleted in core/
lib/ Drupal/ Core/ Diff/ DiffFormatter.php - EntityAutocompleteTest::testEntityReferenceAutocompletion in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityAutocompleteTest.php - Tests autocompletion edge cases with slashes in the names.
- EntityReferenceItem::fieldSettingsForm in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ EntityReferenceItem.php - EntityReferenceSelectionAccessTest::testCommentHandler in core/
modules/ system/ tests/ src/ Kernel/ Entity/ EntityReferenceSelection/ EntityReferenceSelectionAccessTest.php - Tests the comment-specific overrides of the entity handler.
- EntityReferenceSelectionAccessTest::testMediaHandler in core/
modules/ system/ tests/ src/ Kernel/ Entity/ EntityReferenceSelection/ EntityReferenceSelectionAccessTest.php - Tests the selection handler for the media entity type.
- EntityReferenceSelectionAccessTest::testNodeHandler in core/
modules/ system/ tests/ src/ Kernel/ Entity/ EntityReferenceSelection/ EntityReferenceSelectionAccessTest.php - Tests the node-specific overrides of the entity handler.
- EntityReferenceSelectionAccessTest::testTermHandler in core/
modules/ system/ tests/ src/ Kernel/ Entity/ EntityReferenceSelection/ EntityReferenceSelectionAccessTest.php - Tests the term-specific overrides of the selection handler.
- EntityReferenceSelectionAccessTest::testUserHandler in core/
modules/ system/ tests/ src/ Kernel/ Entity/ EntityReferenceSelection/ EntityReferenceSelectionAccessTest.php - Tests the user-specific overrides of the entity handler.
- EntityReferenceSelectionReferenceableTest::testReferenceablesWithNoLabelKey in core/
modules/ system/ tests/ src/ Kernel/ Entity/ EntityReferenceSelectionReferenceableTest.php - Tests referenceable entities with no target entity type 'label' key.
- EntityReferenceSelectionSortTest::testSort in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityReferenceSelection/ EntityReferenceSelectionSortTest.php - Assert sorting by field and property.
- ExceptionHandlingTest::testBacktraceEscaping in core/
tests/ Drupal/ KernelTests/ Core/ Routing/ ExceptionHandlingTest.php - Tests if exception backtraces are properly escaped when output to HTML.
- ExceptionHandlingTest::testExceptionEscaping in core/
tests/ Drupal/ KernelTests/ Core/ Routing/ ExceptionHandlingTest.php - Tests exception message escaping.
- ExposedFormTest::testExposedSortAndItemsPerPage in core/
modules/ views/ tests/ src/ Functional/ Plugin/ ExposedFormTest.php - Tests exposed forms with exposed sort and items per page.
- Fast404ExceptionHtmlSubscriber::on404 in core/
lib/ Drupal/ Core/ EventSubscriber/ Fast404ExceptionHtmlSubscriber.php - Handles a 404 error for HTML.
- FileTokenReplaceTest::testFileTokenReplacement in core/
modules/ file/ tests/ src/ Functional/ FileTokenReplaceTest.php - Creates a file, then tests the tokens generated from it.
- FilterAdminTest::testFilterTipHtmlEscape in core/
modules/ filter/ tests/ src/ Functional/ FilterAdminTest.php - Tests whether filter tips page is not HTML escaped.
- FilterCaption::process in core/
modules/ filter/ src/ Plugin/ Filter/ FilterCaption.php - Performs the filter processing.
- FilterFormatFormBase::form in core/
modules/ filter/ src/ FilterFormatFormBase.php - Gets the actual form array to be built.
- FilterHtml::tips in core/
modules/ filter/ src/ Plugin/ Filter/ FilterHtml.php - Generates a filter's tip.
- FilterPluginBase::buildExposeForm in core/
modules/ views/ src/ Plugin/ views/ filter/ FilterPluginBase.php - Options form subform for exposed filter options.
- FormattableMarkup::placeholderEscape in core/
lib/ Drupal/ Component/ Render/ FormattableMarkup.php - Escapes a placeholder replacement value if needed.
- FormattableMarkup::placeholderFormat in core/
lib/ Drupal/ Component/ Render/ FormattableMarkup.php - Replaces placeholders in a string with values.
- FormBuilderTest::providerTestBuildFormWithTriggeringElement in core/
tests/ Drupal/ Tests/ Core/ Form/ FormBuilderTest.php - Data provider for ::testBuildFormWithTriggeringElement().
- FormTest::testDisabledMarkup in core/
modules/ system/ tests/ src/ Functional/ Form/ FormTest.php - Verify markup for disabled form elements.
- FormTest::testFieldFormSingle in core/
modules/ field/ tests/ src/ Functional/ FormTest.php - FormTestStorageForm::submitForm in core/
modules/ system/ tests/ modules/ form_test/ src/ Form/ FormTestStorageForm.php - Form submission handler.
- FunctionsTest::testIndexedKeyedLinks in core/
modules/ system/ tests/ src/ Kernel/ Theme/ FunctionsTest.php - Tests links.html.twig using links with indexed keys.
- FunctionsTest::testLinks in core/
modules/ system/ tests/ src/ Kernel/ Theme/ FunctionsTest.php - Tests links.html.twig.
- HandlerBase::sanitizeValue in core/
modules/ views/ src/ Plugin/ views/ HandlerBase.php - Sanitize the value for output.
- HandlerFieldRoleTest::testRole in core/
modules/ user/ tests/ src/ Functional/ Views/ HandlerFieldRoleTest.php - HandlerFilterPermissionTest::testFilterPermission in core/
modules/ user/ tests/ src/ Kernel/ Views/ HandlerFilterPermissionTest.php - Tests the permission filter handler.
- hook_node_update_index in core/
modules/ node/ node.api.php - Act on a node being indexed for searching.
- HtmlEscapedText::__toString in core/
lib/ Drupal/ Component/ Render/ HtmlEscapedText.php - Returns markup.
- HtmlTag::preRenderHtmlTag in core/
lib/ Drupal/ Core/ Render/ Element/ HtmlTag.php - Pre-render callback: Renders a generic HTML tag with attributes.
- HtmlTest::testDecodeEntitiesAndEscape in core/
tests/ Drupal/ Tests/ Component/ Utility/ HtmlTest.php - Tests relationship between escaping and decoding HTML entities.
- HtmlTest::testEscape in core/
tests/ Drupal/ Tests/ Component/ Utility/ HtmlTest.php - Tests Html::escape().
- HtmlToTextTest::assertHtmlToText in core/
modules/ system/ tests/ src/ Unit/ Mail/ HtmlToTextTest.php - Helper function to test \Drupal\Core\Mail\MailFormatHelper::htmlToText().
- HtmlToTextTest::stringToHtml in core/
modules/ system/ tests/ src/ Unit/ Mail/ HtmlToTextTest.php - Converts a string to its PHP source equivalent for display in test messages.
- LanguageFormBase::validateCommon in core/
modules/ language/ src/ Form/ LanguageFormBase.php - Validates the language editing element.
- LinkFieldTest::doTestLinkFormatter in core/
modules/ link/ tests/ src/ Functional/ LinkFieldTest.php - Tests the default 'link' formatter.
- LinkFieldTest::doTestLinkSeparateFormatter in core/
modules/ link/ tests/ src/ Functional/ LinkFieldTest.php - Tests the 'link_separate' formatter.
- LinkFieldTest::getUrlWithComplexQueryInputList in core/
modules/ link/ tests/ src/ Functional/ LinkFieldTest.php - Get list of url with complex query parameters for input check.
- LinkFieldTest::testLinkFormatterQueryParametersDuplication in core/
modules/ link/ tests/ src/ Functional/ LinkFieldTest.php - Tests the default 'link' formatter with complex query parameters.
- LinkGenerator::doGenerate in core/
lib/ Drupal/ Core/ Utility/ LinkGenerator.php - Generates the link.
- LocalActionTest::testLocalAction in core/
modules/ system/ tests/ src/ Functional/ Menu/ LocalActionTest.php - Tests appearance of local actions.
- LocalTasksTest::testPluginLocalTask in core/
modules/ system/ tests/ src/ Functional/ Menu/ LocalTasksTest.php - Tests the plugin based local tasks.
- MigrateExecutableTest::testImportWithFailingRewind in core/
modules/ migrate/ tests/ src/ Unit/ MigrateExecutableTest.php - Tests an import with an incomplete rewinding.
- NodeTitleTest::testNodeTitle in core/
modules/ node/ tests/ src/ Functional/ NodeTitleTest.php - Creates one node and tests if the node title has the correct value.
- NodeTitleXSSTest::testNodeTitleXSS in core/
modules/ node/ tests/ src/ Functional/ NodeTitleXSSTest.php - Tests XSS functionality with a node entity.
- NodeTokenReplaceTest::testNodeTokenReplacement in core/
modules/ node/ tests/ src/ Kernel/ NodeTokenReplaceTest.php - Creates a node, then tests the tokens generated from it.
- nyan_cat_render_template in core/
modules/ system/ tests/ themes/ engines/ nyan_cat/ nyan_cat.engine - Implements hook_render_template().
- PageTitleTest::testRoutingTitle in core/
modules/ system/ tests/ src/ Functional/ System/ PageTitleTest.php - Tests the page title of render arrays.
- PageTitleTest::testTitleTags in core/
modules/ system/ tests/ src/ Functional/ System/ PageTitleTest.php - Tests the handling of HTML in node titles.
- PageTitleTest::testTitleXSS in core/
modules/ system/ tests/ src/ Functional/ System/ PageTitleTest.php - Tests if the title of the site is XSS proof.
- Permissions::getValueOptions in core/
modules/ user/ src/ Plugin/ views/ filter/ Permissions.php - Gets the value options.
- PhpSelection::getReferenceableEntities in core/
lib/ Drupal/ Core/ Entity/ Plugin/ EntityReferenceSelection/ PhpSelection.php - Gets the list of referenceable entities.
- PlaceholderGenerator::createPlaceholderTag in core/
lib/ Drupal/ Core/ Render/ PlaceholderGenerator.php - Generates a placeholder HTML tag.
- RawStringFormatterTest::testStringFormatter in core/
modules/ field/ tests/ src/ Kernel/ KernelString/ RawStringFormatterTest.php - Tests string formatter output.
- RearrangeFilter::buildForm in core/
modules/ views_ui/ src/ Form/ Ajax/ RearrangeFilter.php - Form constructor.
- RenderElementTypesTest::assertElements in core/
tests/ Drupal/ KernelTests/ Core/ Render/ Element/ RenderElementTypesTest.php - Asserts that an array of elements is rendered properly.
- Renderer::ensureMarkupIsSafe in core/
lib/ Drupal/ Core/ Render/ Renderer.php - Escapes #plain_text or filters #markup as required.
- Result::render in core/
modules/ views/ src/ Plugin/ views/ area/ Result.php - Render the area.
- Role::buildOptionsForm in core/
modules/ user/ src/ Plugin/ views/ access/ Role.php - Provide a form to edit options for this plugin.
- RowRenderCacheTest::doTestRenderedOutput in core/
modules/ views/ tests/ src/ Kernel/ Plugin/ RowRenderCacheTest.php - Check whether the rendered output matches expectations.
- SearchKeywordsConditionsTest::testSearchKeywordsConditions in core/
modules/ search/ tests/ src/ Functional/ SearchKeywordsConditionsTest.php - Verify the keywords are captured and conditions respected.
- search_excerpt in core/
modules/ search/ search.module - Returns snippets from a piece of text, with search keywords highlighted.
- SelectionTest::assertResults in core/
modules/ field/ tests/ src/ Kernel/ EntityReference/ Views/ SelectionTest.php - Confirm the expected results are returned.
- SelectionTest::testAnchorTagStripping in core/
modules/ field/ tests/ src/ Kernel/ EntityReference/ Views/ SelectionTest.php - Tests the anchor tag stripping.
- SelectionTest::testAutocompleteOutput in core/
modules/ field/ tests/ src/ Functional/ EntityReference/ Views/ SelectionTest.php - Tests that the Views selection handles the views output properly.
- Standard::filterXssDataAttributes in core/
modules/ editor/ src/ EditorXssFilter/ Standard.php - Applies a very permissive XSS/HTML filter to data-attributes.
- StringFormatterTest::testStringFormatter in core/
modules/ field/ tests/ src/ Kernel/ KernelString/ StringFormatterTest.php - Tests string formatter output.
- TagTest::testViewsUiAutocompleteTag in core/
modules/ views_ui/ tests/ src/ Kernel/ TagTest.php - Tests the ViewsUIController::autocompleteTag() function.
- TermSelection::getReferenceableEntities in core/
modules/ taxonomy/ src/ Plugin/ EntityReferenceSelection/ TermSelection.php - Gets the list of referenceable entities.
- TextFieldTest::_testTextfieldWidgetsFormatted in core/
modules/ text/ tests/ src/ Functional/ TextFieldTest.php - Helper function for testTextfieldWidgetsFormatted().
- ThemeRenderAndAutoescapeTest::providerTestThemeRenderAndAutoescape in core/
tests/ Drupal/ KernelTests/ Core/ Theme/ ThemeRenderAndAutoescapeTest.php - Provide test examples.
- TipPluginImageLegacy::getConfigurationOrNot in core/
modules/ tour/ tests/ tour_test/ src/ Plugin/ tour/ tip/ TipPluginImageLegacy.php - TokenReplaceKernelTest::testClear in core/
modules/ system/ tests/ src/ Kernel/ Token/ TokenReplaceKernelTest.php - Tests the clear parameter.
- TokenReplaceKernelTest::testSystemSiteTokenReplacement in core/
modules/ system/ tests/ src/ Kernel/ Token/ TokenReplaceKernelTest.php - Tests the generation of all system site information tokens.
- TokenTest::providerTestReplaceEscaping in core/
tests/ Drupal/ Tests/ Core/ Utility/ TokenTest.php - TwigDebugMarkupTest::testTwigDebugMarkup in core/
modules/ system/ tests/ src/ Functional/ Theme/ TwigDebugMarkupTest.php - Tests debug markup added to Twig template output.
- TwigEnvironmentTest::testInlineTemplate in core/
tests/ Drupal/ KernelTests/ Core/ Theme/ TwigEnvironmentTest.php - Tests inline templates.
- TwigExtension::escapeFilter in core/
lib/ Drupal/ Core/ Template/ TwigExtension.php - Overrides twig_escape_filter().
- twig_render_template in core/
themes/ engines/ twig/ twig.engine - Implements hook_render_template().
- UpdatePathTestBase::testDatabaseLoaded in core/
tests/ Drupal/ FunctionalTests/ Update/ UpdatePathTestBase.php - Tests that the database was properly loaded.
- UrlHelper::filterBadProtocol in core/
lib/ Drupal/ Component/ Utility/ UrlHelper.php - Processes an HTML attribute value and strips dangerous protocols from URLs.
- User::buildOptionsForm in core/
modules/ user/ src/ Plugin/ views/ argument_validator/ User.php - Provides the default form for setting options.
- UserRole::buildConfigurationForm in core/
modules/ user/ src/ Plugin/ Condition/ UserRole.php - Form constructor.
- ValidatorsTest::providerPair in core/
modules/ ckeditor5/ tests/ src/ Kernel/ ValidatorsTest.php - Provides a list of Text Editor + Text Format pairs to test.
- ViewsFormMainForm::preRenderViewsForm in core/
modules/ views/ src/ Form/ ViewsFormMainForm.php - Replaces views substitution placeholders.
- ViewsUIController::autocompleteTag in core/
modules/ views_ui/ src/ Controller/ ViewsUIController.php - Menu callback for Views tag autocompletion.
- views_views_pre_render in core/
modules/ views/ views.module - Implements hook_views_pre_render().
- WebAssert::assertEscaped in core/
tests/ Drupal/ Tests/ WebAssert.php - Passes if the raw text IS found escaped on the loaded page.
- WebAssert::assertNoEscaped in core/
tests/ Drupal/ Tests/ WebAssert.php - Passes if the raw text IS NOT found escaped on the loaded page.
- WebAssertTest::testTextAsserts in core/
tests/ Drupal/ FunctionalTests/ WebAssertTest.php - Tests legacy text asserts.
- WebAssertTest::testTextAsserts in core/
tests/ Drupal/ Tests/ Core/ Test/ WebAssertTest.php - Tests legacy text asserts.
- WorkspaceSelection::getReferenceableEntities in core/
modules/ workspaces/ src/ Plugin/ EntityReferenceSelection/ WorkspaceSelection.php - Gets the list of referenceable entities.
- _batch_test_finished_helper in core/
modules/ system/ tests/ modules/ batch_test/ batch_test.callbacks.inc - Provides a common 'finished' callback for batches 1 to 7.
- _filter_html_escape in core/
modules/ filter/ filter.module - Escapes all HTML tags, so they will be visible instead of being effective.
- _filter_url_parse_email_links in core/
modules/ filter/ filter.module - Makes links out of email addresses.
- _filter_url_parse_full_links in core/
modules/ filter/ filter.module - Makes links out of absolute URLs.
- _filter_url_parse_partial_links in core/
modules/ filter/ filter.module - Makes links out of domain names starting with "www.".
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.