Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

strip_tags_and_attributes()

Description

Utility function to remove unwanted HTML tags and attributes.
Note: if $html is a full page, developers should allow html and body tags.

Parameters

ColumnTypeDefaultDescription
$html string HTML string
$tags array array Extra tags to be allowed
$attributes array array Extra attributes to be allowed

Return

string

This article was last updated 30th November 2020 17:35 Europe/London time based on the source file dated 30th November 2020 09:45 Europe/London time.