Forum > Networking and Web Programming

Function to replace characters with HTML character references ( < > )?

(1/2) > >>

alpine:
I'm looking into the fpc packages for such a function but I can't find one.
There should be one somewhere (fcl-web), with such a developed infrastructure...

Josh:
unit
httpprotocol

has a httpdecode and httpdecode function

any use ?

alpine:

--- Quote from: Josh on April 30, 2024, 03:20:45 pm ---unit
httpprotocol

has a httpdecode and httpdecode function

any use ?

--- End quote ---
Thanks for reply!
Found these but they are for URL encoding (+%xxx+).

dsiders:

--- Quote from: alpine on April 30, 2024, 03:05:48 pm ---I'm looking into the fpc packages for such a function but I can't find one.
There should be one somewhere (fcl-web), with such a developed infrastructure...

--- End quote ---

EscapeHTML() and  UnescapeHTML() routines are located in htmlelements.pp in the fcl-xml package.

Kays:
EscapeHTML can only handle ampersand, less than, greater than, inch sign, and dumb apostrophe, yet there are 1926 character entities. I don’t think Alpine would’ve asked his question if all he needed was escaping the special meaning characters ampersand and less than sign. He could’ve accomplished that on his own.

Navigation

[0] Message Index

[#] Next page

Go to full version