-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.5.1
When a textarea custom field contains an iframe (such as embed youtube), without any additional text, the content is considered as blank.
I think the iframe should be considered as an actual content, and this can be fixed by adding iframe to the list of allowed tags of strip_tags function.
Please let me know if there is any other opinion.
function html_is_blank($string) {
return trim(strip_tags((string)$string, '<img><object><applet><input><select><textarea><hr>')) == '';
}