How To The Write `decodeFromURL( )` Function In ColdFusion?
Description:-
This is used to decode an encoded HTML URL string.
decodeFromURL( encoded_HTML_string );
Attributes:-
string:-
This is a required argument, the encoded string which needs to be decoded.
Example:-
newText = "test.new15%244%40gmail.com";
writeOutput( "before decoded:- #newText#" );
writeOutput( "after decoded:- #decodeFromURL( newText )#" );
Result:-
before decoded:- test.new15%244%40gmail.com
after decoded:- test.new15$4@gmail.com
Note:- there is another function that also presents for the same work which is urlDecode( )
.