Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Edit: One problem remains: $content = $filter->clean($content, 'HTML'); Removes all HTML-formatting. How can I avoid this? Commented Jun 29, 2015 at 15:13
  • By default, it will remove any "unsafe" tags and attributes. The class contains a hardcoded blacklist of tags and attributes for that. See github.com/joomla/joomla-cms/blob/staging/libraries/joomla/…: You can override those when you instantiate your own class. Commented Jun 29, 2015 at 18:01