Jump to content

htmlentites


The Little Guy

Recommended Posts

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:

&lt;span&gt;hello&lt;/span&gt;

 

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

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 :D

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.