SproutCMS

This is the code documentation for the SproutCMS project

function setLocalResources()

Set whether to only allow local resources to be referenced by automatically fetching attributes
e.g. the src attribute on an <img> tag. Does not apply to the href attribute as that won't be
automatically fetched by a browser.

Usage

void $RichTextSanitiser->setLocalResources ( bool $local );

Arguments

  1. bool $local
    True if only local resources are allowed, false if any resource is permitted

Return value

  • void