Test your website performance for free
Test your website performance
New in 1.26.0

resolveHtmlUrls(htmlString)

Transforms internal URLs contained in raw Scrivito HTML markup to fully qualified URLs.

For the purpose of customizing (processing) the contents of html attributes and rendering it, this method resolves the internal URLs the markup may contain.

Params

  • htmlString (String) – Raw Scrivito HTML markup, typically from an attribute of the html type.

Returns

String – The HTML markup with all internal links resolved to fully qualified URLs.

Examples

Retrieve the HTML markup of all text widgets on the current page:

Render an html attribute with resolved internal URLs and filled-in placeholders: