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

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

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" />

Leave a Reply

Your email address will not be published. Required fields are marked *

We are a young team of professionals and internet lovers who specialise in the development of professional websites and premium plugins for WordPress and Joomla! CMS.
Copyright © 2019 Web357. All Rights Reserved.
Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries.
Web357 is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.