Just nu i M3-nätverket
Jump to content

htmlencode


martinwahlby

Recommended Posts

Okej, htmlencode i all ära men hur får man tillbaka stringen till vanlig text igen, om man t.ex vill skriva till en text fil!!? *panik*

 

Mvh

Martin

Link to comment
Share on other sites

1) Spara inte HTMLencode-formaterad text, använd först när du ska visa i webbläsare.

 

2) Om du nu sitter där med en felaktigt formaterad sträng får du nog byta alla lustigheter själv:

 

s = Replace( s, "&lt;", "<" ),

s = Replace( s, "&gt;", ">" ),

s = Replace( s, "&amp;", "&" ), etc.

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...