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. Quote 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() Quote 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); Quote Link to comment https://forums.phpfreaks.com/topic/177024-convert-to-amp/#findComment-933376 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.