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 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 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 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 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 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 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 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 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 Share on other sites More sharing options...
Recommended Posts