How do I fix this issue:
HTML tags entered into the editor (not the Source window) are changed to text in the output. For example: If I type '<b>help</b>' in the editor, it is changed to '<help>'.
Deperate. Any help is appreciated.
HTML tags entered into the editor (not the Source window) are changed to text in the output. For example: If I type '<b>help</b>' in the editor, it is changed to '<help>'.
Deperate. Any help is appreciated.
RE: why changing html tags to text?
RE: why changing html tags to text?
RE: why changing html tags to text?
Has anybody found a fix for this since this makes the app. useless.
RE: why changing html tags to text?
<p>This might be the solution (for asp pages, IE browser, SQL 2000/2005 - .net
seems to have a built in function?):</p>
<p>The boss (FCK) pointed out that the sample pages use Server.HTMLEncode to
display the html - but we need to decode - with asp, IE a simple rewrite of
Server.Decode in the page that receives the data to save to the db gives an
error that it does not recognise this function.</p>
<p>One could save the text as in into an sql 2000/2005 db and present it with
server.HTMLEncode - for me that gets messy because there are too many pages to
change, I would prefer to have it stored in its intended format since that what
is done currently......</p>
<p>So, a google search revealed someone who has been there before;</p>
<p>this guy / link was credited with this "solution" (?)</p>
<p><a href="http://flangy.com/dev/asp/urldecode.html">
http://flangy.com/dev/asp/urldecode.html</a></p>
<p>His fix is shown in <span style="background-color: #00FF00">green highlight</span></p>
<p>This takes care of using a CleanforSQL type function to tidy up the "'" that
sql 2000/2005 does not deal with. The full code that I used on my 'save' page
nests the decode inside the CleanforSQL - so you can strip out the
<span style="background-color: #FFFF00">CleanforSQL</span> if you don't need
that. I also took out the <%option explicit%> for the live page since it bombed
on the live server with a 500 error (no error details are revealed on the live
server).</p>
<p><%@ CodePage=65001 Language="VBScript"%><br>
<br>
<!--#INCLUDE FILE="dbConn.asp"--><br>
<br>
<%Dim strSQL, sForm<br>
<br>
<span style="background-color: #00FF00">' An inverse to Server.URLEncode<br>
function URLDecode(str)<br>
dim re<br>
set re = new RegExp<br>
<br>
</span><span style="background-color: #00FF00">str = Replace(str, "+", " ")<br>
<br>
</span><span style="background-color: #00FF00">re.Pattern = "%([0-9a-fA-F]{2})"<br>
</span><span style="background-color: #00FF00">re.Global = True<br>
</span><span style="background-color: #00FF00">URLDecode = re.Replace(str,
GetRef("URLDecodeHex"))<br>
end function<br>
<br>
' Replacement function for the above<br>
function URLDecodeHex(match, hex_digits, pos, source)<br>
</span><span style="background-color: #00FF00">URLDecodeHex = chr("&H" &
hex_digits)<br>
end function</span><br>
'===================================================<br>
<br>
<span style="background-color: #FFFF00">Function CleanForSQL(strValue)<br>
'create another copy<br>
Dim strTemp<br>
</span><span style="background-color: #FFFF00">strtemp = strValue<br>
'clean out single quotes<br>
Do until InStr(1, strTemp, "'") = 0<br>
</span><span style="background-color: #FFFF00">strTemp = left(strTemp, InStr(1,
strTemp, "'") -1) & _<br>
</span><span style="background-color: #FFFF00">Right(strTemp, Len(strTemp) -
InStr(1, strTemp, "'"))<br>
Loop<br>
<br>
'return the clean string<br>
</span><span style="background-color: #FFFF00">CleanForSQL = strTemp<br>
End Function</span><br>
<br>
For Each sForm in Request.Form <br>
<br>
strSQL = "UPDATE tblCricketFixtures SET " & _<br>
" Report = '" &<span style="background-color: #FFFF00"> CleanForSQL(</span><span style="background-color: #00FF00">URLDecode(Request.Form(sForm))</span><span style="background-color: #FFFF00">)</span>
& "'" & _<br>
" WHERE ID = " & Request("FixtureID") & " AND Innings = 1"<br>
<br>
<br>
'Response.Write strSQL<br>
'response.end<br>
<br>
dbConn.execute strSQL<br>
<br>
Next<br>
<br>
Response.Redirect "MatchReport.asp?FixtureID=" & Request("FixtureID") &
"&Category=" & Request("Category") & "&League=" & Request("League") & "&ATeam="
& Request("ATeam") & "&Innings=1"<br>
%><br>
<!--#Include file="DBConnClose.asp"--><br>
<br>
</p>
RE: why changing html tags to text?
If that whole reply is pasted in to an html editor it will display as the page was intended to.
Sorry about that.
RE: why changing html tags to text?
If anyone can post the reply to make it readable...
RE: why changing html tags to text?
You'll need to switch to source mode or write a plugin that inserts the html that you want.
RE: why changing html tags to text?
is it possible to open editor in source mode by default,if yes then how do we do it
thanks