$str = "This is some <b>bold</b> text."; echo htmlspecialchars_decode($str); // out will be like: // This is some <b>bold</b> text.