SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
<?php $str = "This is some <b>bold</b> text."; echo htmlspecialchars($str); ?>