Function FixHTML(InputTxt) If NOT isnull(InputTxt) Then InputTxt = Replace(InputTxt,vbCrlf,"<br>") InputTxt = Replace(InputTxt,"[rubrik]","<h1>") InputTxt = Replace(InputTxt,"[/rubrik]","</h1>") InputTxt = Replace(InputTxt,"[underrubrik]","<h2>") InputTxt = Replace(InputTxt,"[/underrubrik]","</h2>") InputTxt = Replace(InputTxt,"[b]","<strong>") InputTxt = Replace(InputTxt,"[/b]","</strong") InputTxt = Replace(InputTxt,"[fet]","<strong>") InputTxt = Replace(InputTxt,"[/fet]","</strong>") InputTxt = Replace(InputTxt,"[i]","<i>") InputTxt = Replace(InputTxt,"[/i]","</i>") InputTxt = Replace(InputTxt,"[u]","<u>") InputTxt = Replace(InputTxt,"[/u]","</u>") InputTxt = Replace(InputTxt,"[red]","<font color=""red"">") InputTxt = Replace(InputTxt,"[/red]","</font>") InputTxt = Replace(InputTxt,"[blue]","<font color=""blue"">") InputTxt = Replace(InputTxt,"[/blue]","</font>") InputTxt = Replace(InputTxt,"[color]","<font color=""blue"">") InputTxt = Replace(InputTxt,"[/color]","</font>") FixHTML = InputTxt End if End Function
Jag ser inget fel i koden och den funkar som sagt var på gamla servern.
Har tidigare frågat om nåt liknande i denna tråd men då var det tillsammans med regExp och det (tror) jag är löst genom att jag bytte regExp-script.
Är det någon där ute som upplevt samma sak och vet bot?
// Wepe

Logga in
Bli medlem


Citera flera inlägg

