26 calls to Html::load()
- AssertContentTrait::parse in core/
tests/ Drupal/ KernelTests/ AssertContentTrait.php - Parse content returned from curlExec using DOM and SimpleXML.
- AttributeTest::getXPathResultCount in core/
tests/ Drupal/ Tests/ Core/ Template/ AttributeTest.php - Counts the occurrences of the given XPath query in a given HTML snippet.
- CKEditor5TestTrait::getEditorDataAsDom in core/
modules/ ckeditor5/ tests/ src/ Traits/ CKEditor5TestTrait.php - Gets CKEditor 5 instance data as a PHP DOMDocument.
- EditorFileReference::process in core/
modules/ editor/ src/ Plugin/ Filter/ EditorFileReference.php - FieldWebTest::parseContent in core/
modules/ views/ tests/ src/ Functional/ Handler/ FieldWebTest.php - Parse a content and return the html element.
- FilterAlign::process in core/
modules/ filter/ src/ Plugin/ Filter/ FilterAlign.php - FilterCaption::process in core/
modules/ filter/ src/ Plugin/ Filter/ FilterCaption.php - FilterHtml::filterAttributes in core/
modules/ filter/ src/ Plugin/ Filter/ FilterHtml.php - Provides filtering of tag attributes into accepted HTML.
- FilterImageLazyLoad::transformImages in core/
modules/ filter/ src/ Plugin/ Filter/ FilterImageLazyLoad.php - Transform markup of images to include loading="lazy".
- FunctionsTest::testDrupalPreRenderLinks in core/
modules/ system/ tests/ src/ Kernel/ Theme/ FunctionsTest.php - Tests the use of Link::preRenderLinks() on a nested array of links.
- Html::normalize in core/
lib/ Drupal/ Component/ Utility/ Html.php - Normalizes an HTML snippet.
- Html::transformRootRelativeUrlsToAbsolute in core/
lib/ Drupal/ Component/ Utility/ Html.php - Converts all root-relative URLs to absolute URLs.
- ImageTestBaselineTrait::testAttributeRetentionDuringUpcasting in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ ImageTestBaselineTrait.php - Ensures that attributes are retained on conversion.
- ImageTestBaselineTrait::testImageCaption in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ ImageTestBaselineTrait.php - Ensures that images can have caption set.
- LinkGeneratorTest::assertLink in core/
tests/ Drupal/ Tests/ Core/ Utility/ LinkGeneratorTest.php - Checks that a link with certain properties exists in a given HTML snippet.
- LinkGeneratorTest::assertNoXPathResults in core/
tests/ Drupal/ Tests/ Core/ Utility/ LinkGeneratorTest.php - Checks that the given XPath query has no results in a given HTML snippet.
- MediaEmbed::process in core/
modules/ media/ src/ Plugin/ Filter/ MediaEmbed.php - MediaEmbedFilterTestBase::createEmbedCode in core/
modules/ media/ tests/ src/ Kernel/ MediaEmbedFilterTestBase.php - Gets an embed code with given attributes.
- PlaceholderGeneratorTest::testCreatePlaceholderGeneratesValidHtmlMarkup in core/
tests/ Drupal/ Tests/ Core/ Render/ PlaceholderGeneratorTest.php - Ensure that the generated placeholder markup is valid.
- RendererPlaceholdersTest::testRenderChildrenPlaceholdersDifferentArguments in core/
tests/ Drupal/ Tests/ Core/ Render/ RendererPlaceholdersTest.php - Tests the creation of an element with a child and a sub-child.
- Standard::filterXssDataAttributes in core/
modules/ editor/ src/ EditorXssFilter/ Standard.php - Applies a very permissive XSS/HTML filter to data-attributes.
- StyleTest::getHtmlDom in core/
modules/ views/ tests/ src/ Kernel/ Plugin/ StyleTest.php - Returns a view output as SimpleXMLElement.
- StyleTestBase::storeViewPreview in core/
modules/ views/ tests/ src/ Kernel/ Plugin/ StyleTestBase.php - Stores a view output in the elements.
- UrlResolver::discoverResourceUrl in core/
modules/ media/ src/ OEmbed/ UrlResolver.php - Runs oEmbed discovery and returns the endpoint URL if successful.
- _editor_parse_file_uuids in core/
modules/ editor/ editor.module - Parse an HTML snippet for any linked file with data-entity-uuid attributes.
- _filter_html_image_secure_process in core/
modules/ filter/ filter.module - Process callback for local image filter.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.