How do I allow HTML in a module’s configuration parameter’s textarea/editor field type?

Written on . Posted in .

Add a filter=”raw” or filter=”safehtml” attribute in the XML field tag of the parameter.

Example:

  • filter (optional) allow the system to save certain html tags or raw data.
<field name="myhtmlvalue" type="text" default="" label="Some text" description="Some desc" filter="raw" />