139 calls to Html::escape()
- AggregatorTestBase::getValidOpml in core/
modules/ aggregator/ src/ Tests/ AggregatorTestBase.php - Creates a valid OPML file from an array of feeds.
- AggregatorTestBase::getValidOpml in core/
modules/ aggregator/ tests/ src/ Functional/ AggregatorTestBase.php - Creates a valid OPML file from an array of feeds.
- AssertBreadcrumbTrait::assertBreadcrumbParts in core/
modules/ system/ src/ Tests/ Menu/ AssertBreadcrumbTrait.php - Assert that a trail exists in the internal browser.
- 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 the raw text IS NOT found escaped on the 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.
- AssertContentTrait::assertThemeOutput in core/
tests/ Drupal/ KernelTests/ AssertContentTrait.php - Asserts themed output.
- 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.
- BrowserTestBaseTest::testTextAsserts in core/
tests/ Drupal/ FunctionalTests/ BrowserTestBaseTest.php - Tests legacy text asserts.
- 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.
- check_url in core/
includes/ common.inc - Strips dangerous protocols from a URI and encodes it for output to HTML.
- CommentAdminTest::testApprovalAdminInterface in core/
modules/ comment/ tests/ src/ Functional/ CommentAdminTest.php - Test comment approval functionality through admin/content/comment.
- CommentAdminTest::testApprovalAdminInterface in core/
modules/ comment/ tests/ src/ Functional/ Views/ CommentAdminTest.php - Test 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.
- 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.
- ConfigImporterTest::testSecondaryWriteSecondaryFirst in core/
tests/ Drupal/ KernelTests/ Core/ Config/ ConfigImporterTest.php - Tests that secondary writes are overwritten.
- ConfigImportUITest::testImportDiff in core/
modules/ config/ tests/ src/ Functional/ ConfigImportUITest.php - Tests the screen that shows differences between active and sync.
- ConfigTranslationOverviewTest::testMapperListPage in core/
modules/ config_translation/ tests/ src/ Functional/ ConfigTranslationOverviewTest.php - Tests the config translation mapper page.
- ConfigTranslationUiTest::testBooleanFieldConfigTranslation in core/
modules/ config_translation/ tests/ src/ Functional/ ConfigTranslationUiTest.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.
- debug in core/
includes/ common.inc - Outputs debug information.
- 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 - drupal_placeholder in core/
includes/ bootstrap.inc - Formats text for emphasized display in a placeholder inside a sentence.
- 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 - Returns a form for the field-level settings.
- EntityReferenceSelectionAccessTest::testCommentHandler in core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityReferenceSelection/ EntityReferenceSelectionAccessTest.php - Test the comment-specific overrides of the entity handler.
- EntityReferenceSelectionAccessTest::testMediaHandler in core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityReferenceSelection/ EntityReferenceSelectionAccessTest.php - Tests the selection handler for the media entity type.
- EntityReferenceSelectionAccessTest::testNodeHandler in core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityReferenceSelection/ EntityReferenceSelectionAccessTest.php - Test the node-specific overrides of the entity handler.
- EntityReferenceSelectionAccessTest::testTermHandler in core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityReferenceSelection/ EntityReferenceSelectionAccessTest.php - Test the term-specific overrides of the selection handler.
- EntityReferenceSelectionAccessTest::testUserHandler in core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityReferenceSelection/ EntityReferenceSelectionAccessTest.php - Test the user-specific overrides of the entity handler.
- EntityReferenceSelectionReferenceableTest::testReferenceablesWithNoLabelKey in core/
modules/ system/ tests/ src/ Kernel/ Entity/ EntityReferenceSelectionReferenceableTest.php - Tests values returned by SelectionInterface::getReferenceableEntities() when the target entity type has no '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.
- FilterHtml::tips in core/
modules/ filter/ src/ Plugin/ Filter/ FilterHtml.php - Generates a filter's tip.
- FilterProcessResult::createPlaceholder in core/
modules/ filter/ src/ FilterProcessResult.php - Creates a placeholder.
- 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.
- HtmlOutputPrinterTrait::simpletestUiWrite in core/
tests/ Drupal/ Tests/ Listeners/ HtmlOutputPrinterTrait.php - Prints HTML output links for the Simpletest UI.
- HtmlResponseAttachmentsProcessor::processHtmlHeadLink in core/
lib/ Drupal/ Core/ Render/ HtmlResponseAttachmentsProcessor.php - Transform a html_head_link array into html_head and http_header arrays.
- 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/ Functional/ Mail/ HtmlToTextTest.php - Helper function to test \Drupal\Core\Mail\MailFormatHelper::htmlToText().
- HtmlToTextTest::stringToHtml in core/
modules/ system/ tests/ src/ Functional/ Mail/ HtmlToTextTest.php - Converts a string to its PHP source equivalent for display in test messages.
- KernelTestBase::render in core/
modules/ simpletest/ src/ KernelTestBase.php - Renders a render array.
- KernelTestBase::render in core/
tests/ Drupal/ KernelTests/ KernelTestBase.php - Renders a render array.
- LanguageFormBase::validateCommon in core/
modules/ language/ src/ Form/ LanguageFormBase.php - Validates the language editing element.
- LinkFieldTest::testLinkFormatter in core/
modules/ link/ tests/ src/ Functional/ LinkFieldTest.php - Tests the default 'link' formatter.
- LinkFieldTest::testLinkSeparateFormatter in core/
modules/ link/ tests/ src/ Functional/ LinkFieldTest.php - Tests the 'link_separate' formatter.
- 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.
- NodeViewTest::testLinkHeader in core/
modules/ node/ tests/ src/ Functional/ NodeViewTest.php - Tests the Link header.
- 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 - Test if the title of the site is XSS proof.
- Permissions::getValueOptions in core/
modules/ user/ src/ Plugin/ views/ filter/ Permissions.php - Child classes should be used to override this function and set the 'value options', unless 'options callback' is defined as a valid function or static public method to generate these values.
- PhpSelection::getReferenceableEntities in core/
lib/ Drupal/ Core/ Entity/ Plugin/ EntityReferenceSelection/ PhpSelection.php - Gets the list of referenceable entities.
- PlaceholderGenerator::createPlaceholder in core/
lib/ Drupal/ Core/ Render/ PlaceholderGenerator.php - Turns the given element into a placeholder.
- RawStringFormatterTest::testStringFormatter in core/
modules/ field/ tests/ src/ Kernel/ String/ 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.
- 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/ String/ StringFormatterTest.php - Tests string formatter output.
- TableSortExtenderTest::testTableSortInit in core/
tests/ Drupal/ KernelTests/ Core/ Render/ Element/ TableSortExtenderTest.php - Tests \Drupal\Core\Utility\TableSort::getContextFromRequest().
- 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.
- theme_render_and_autoescape in core/
includes/ theme.inc - Escapes and renders variables for theme functions.
- TipPluginImage::getOutput in core/
modules/ tour/ tests/ tour_test/ src/ Plugin/ tour/ tip/ TipPluginImage.php - Returns a renderable array.
- TipPluginText::getOutput in core/
modules/ tour/ src/ Plugin/ tour/ tip/ TipPluginText.php - Returns a renderable array.
- 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 - TransformedConfigExportImportUITest::testTransformedExportImport in core/
modules/ config/ tests/ src/ Functional/ TransformedConfigExportImportUITest.php - Tests a simple site export import case.
- 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().
- UpdatePathTestBaseTest::testDatabaseLoaded in core/
tests/ Drupal/ FunctionalTests/ Update/ UpdatePathTestBaseTest.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.
- 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.
- WebTestBase::drupalGet in core/
modules/ simpletest/ src/ WebTestBase.php - Retrieves a Drupal path or an absolute path.
- WebTestBase::drupalHead in core/
modules/ simpletest/ src/ WebTestBase.php - Retrieves only the headers for a Drupal path or an absolute path.
- WebTestBase::drupalPostForm in core/
modules/ simpletest/ src/ WebTestBase.php - Executes a form submission.
- 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.