The Little Guy Posted September 2, 2011 Share Posted September 2, 2011 is there a function similar to htmlentities(), that I can pass anything into and it will do what htmlentites does, BUT if passing the returned result from htmlentites back into it it will not convert that. Kinda confusing, I know, so here is an example: Here is the result if I pass html to htmlentities 1 time: <span>hello</span> Here is the result if I pass the above to htmlentities again: <span>hello</span> What I would like is this: Passed to somefunction 1 time: <span>hello</span> Passed to somefunction the second time: <span>hello</span> As you can see the result didn't change, like it did in the first example. Any way for me to get my second example two work? Thanks! Link to comment https://forums.phpfreaks.com/topic/246284-htmlentites/ Share on other sites More sharing options...
The Little Guy Posted September 2, 2011 Author Share Posted September 2, 2011 OMG, Sorry I found it! echo htmlentities("<span>hello</span>", ENT_COMPAT, "ISO-8859-1", false); Link to comment https://forums.phpfreaks.com/topic/246284-htmlentites/#findComment-1264766 Share on other sites More sharing options...
WebStyles Posted September 2, 2011 Share Posted September 2, 2011 started by The Little Guy, solved By The Little Guy. Coolness! Link to comment https://forums.phpfreaks.com/topic/246284-htmlentites/#findComment-1264767 Share on other sites More sharing options...
AyKay47 Posted September 2, 2011 Share Posted September 2, 2011 started by The Little Guy, solved By The Little Guy. Coolness! worthless post by WebStyles. Coolness! Link to comment https://forums.phpfreaks.com/topic/246284-htmlentites/#findComment-1264776 Share on other sites More sharing options...
Philip Posted September 3, 2011 Share Posted September 3, 2011 worthless post by WebStyles. Coolness! oh the irony... Link to comment https://forums.phpfreaks.com/topic/246284-htmlentites/#findComment-1265026 Share on other sites More sharing options...
cags Posted September 3, 2011 Share Posted September 3, 2011 started by The Little Guy, solved By The Little Guy. Coolness! worthless post by WebStyles. Coolness! worthless post by AyKay47, about a worthless post by WebStyles. Coolness! Link to comment https://forums.phpfreaks.com/topic/246284-htmlentites/#findComment-1265046 Share on other sites More sharing options...
AyKay47 Posted September 5, 2011 Share Posted September 5, 2011 started by The Little Guy, solved By The Little Guy. Coolness! worthless post by WebStyles. Coolness! worthless post by AyKay47, about a worthless post by WebStyles. Coolness! the chain can go on forever. Link to comment https://forums.phpfreaks.com/topic/246284-htmlentites/#findComment-1265663 Share on other sites More sharing options...
flappy_warbucks Posted September 5, 2011 Share Posted September 5, 2011 started by The Little Guy, solved By The Little Guy. Coolness! worthless post by WebStyles. Coolness! worthless post by AyKay47, about a worthless post by WebStyles. Coolness! the chain can go on forever. If all the posters posted all the time. It could be an infinite loop! Link to comment https://forums.phpfreaks.com/topic/246284-htmlentites/#findComment-1265664 Share on other sites More sharing options...
voip03 Posted September 5, 2011 Share Posted September 5, 2011 started by The Little Guy, solved By The Little Guy. Coolness! worthless post by WebStyles. Coolness! worthless post by AyKay47, about a worthless post by WebStyles. Coolness! the chain can go on forever. If all the posters posted all the time. It could be an infinite loop! Shall we Link to comment https://forums.phpfreaks.com/topic/246284-htmlentites/#findComment-1265669 Share on other sites More sharing options...
Recommended Posts