Navigation

Search

un_htmlspecialchars

Description

Undoes htmlspecialchars done by SMF and should be used for compatibility reasons.

Syntax

void un_htmlspecialchars (string $text)



Parameter $text

Expected type: String
Description: string to be have htmlspecialchars removed.


Notes

  • removes the base entities (<, ", etc.) from text.
  • should be used instead of html_entity_decode for PHP version compatibility reasons.
  • additionally converts   and '.
View all versions of this function