poofried Posted October 8, 2009 Share Posted October 8, 2009 how can i find the & symbols in a string and replace them with & so that my html will produce valid code. Link to comment https://forums.phpfreaks.com/topic/177024-convert-to-amp/ Share on other sites More sharing options...
thebadbad Posted October 8, 2009 Share Posted October 8, 2009 str_replace() Link to comment https://forums.phpfreaks.com/topic/177024-convert-to-amp/#findComment-933375 Share on other sites More sharing options...
dreamwest Posted October 8, 2009 Share Posted October 8, 2009 $str = "&iuiihi&"; echo htmlentities($str); Link to comment https://forums.phpfreaks.com/topic/177024-convert-to-amp/#findComment-933376 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.