Created
May 14, 2018 05:13
-
-
Save pandauxstudio/31532b83e303a1d163671c838eca8a4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* convertCharactersToHtml | |
* ======================= | |
* Converts HTML characters to HTML elements, such as replacing greater-than sign ">" with ">". | |
* @param string mixedString String with special characters. | |
* @return string HTML elements. | |
*/ | |
function convertCharactersToHtml($mixedString) { | |
return htmlspecialchars($mixedString); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment