﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>" Allow HTML"  option</title><link>http://www.aspplayground.net/forum/</link><description /><copyright>(c) ASP Playground Support Forum</copyright><ttl>30</ttl><item><title> RE: RE: " Allow HTML"  option (Samuel)</title><description>  Thanks Gene for your comment!&lt;img src="http://www.aspplayground.net/forum/upfiles/smiley/s1.gif" alt="" /&gt; &lt;br&gt;   &lt;br&gt;  I am not sure if you will be able to read this message (server will be down) so I will answer you as quickly as possible: &lt;br&gt;   &lt;br&gt;  &lt;blockquote class="quote"&gt;&lt;div style="width:50%;font-weight:bold; padding-bottom:4px;"&gt;&lt;/div&gt;1) Where exactly do you replace the double-quotes with the "  phrase? &lt;/blockquote&gt;  &lt;br&gt;   &lt;br&gt;  It is in SQLout function. &lt;br&gt;   &lt;br&gt;  &lt;blockquote class="quote"&gt;&lt;div style="width:50%;font-weight:bold; padding-bottom:4px;"&gt;&lt;/div&gt;2) Why do quotes get replaced with quotes-plus-spaces?&lt;/blockquote&gt; &lt;br&gt;   &lt;br&gt;  It is for search. See, without full-text indexing capability, you won' t be able to search words that are surrounded by " " . Like you can' t search the word " ALOHA"  (with quote). So I decided to add a space after each double quote and single quote and have my code to perform search on &lt;b&gt;space(1)+searched term&lt;/b&gt;. This is how we do search when you choose single byte character in the search interface. &lt;br&gt;   &lt;br&gt;  This is a very sophisticated way to prevent unwanted result. Like you don' t want to see &lt;b&gt;readable &lt;/b&gt; when you just want to search &lt;b&gt;able&lt;/b&gt;, but what about &lt;b&gt;" able" &lt;/b&gt; (with quote) ? &lt;br&gt;   &lt;br&gt;  The same applies to vbcrlf. You can try searching the word &lt;b&gt;able&lt;/b&gt; and you will know what I mean. &lt;br&gt;   &lt;br&gt;  &lt;blockquote class="quote"&gt;&lt;div style="width:50%;font-weight:bold; padding-bottom:4px;"&gt;&lt;/div&gt;3) Where are you replacing the vbcrlf with a &amp;lt;br&amp;gt;? &lt;/blockquote&gt;  &lt;br&gt;  It is in m_process.asp &lt;br&gt;   &lt;br&gt;  Again, thank you for your comment. I have tried my best to use browser' s JS capability to reduce server loads. We can actually use RegEXP with VBScript, but it is way way way too slow than JScript. And since today' s PC has a lot more CPU power than before, why not use it?&lt;img src="http://www.aspplayground.net/forum/upfiles/smiley/s4.gif" alt="" /&gt; (my home PC has 2.2GHz CPU =&amp;gt; a lot more powerful than my current server) </description><link>http://www.aspplayground.net/forum/fb.ashx?m=373581</link><pubDate>Mon, 15 Jul 2002 00:26:57 GMT</pubDate></item><item><title> RE: " Allow HTML"  option (gene)</title><description>  Okay, I' ve been dinking around with your code (and teaching myself Javascript and RegEx' s in the process &lt;img src="http://www.aspplayground.net/forum/upfiles/smiley/s3.gif" alt="" /&gt;) and see why enabling HTML can be difficult on this forum.   I' ve done it, but I' m not totally satisfied, as I' m replacing all incidences of double-quotes in the " body"  variable with single-quotes prior to passing it to pgdCode in m.asp and tm.asp.  &lt;br&gt;   &lt;br&gt;  Couple of questions:  &lt;br&gt;   &lt;br&gt;  1) Where exactly do you replace the double-quotes with the &lt;b&gt;&amp;&lt;/b&gt;&lt;b&gt;quot&lt;/b&gt;&lt;b&gt;;&lt;/b&gt; phrase?   &lt;br&gt;   &lt;br&gt;  2) Why do quotes get replaced with quotes-plus-spaces?  I have programmed around it, but am curious as to why you do this (I think it' s in SQLIn and SQLOut). &lt;br&gt;   &lt;br&gt;  3) Where are you replacing the &lt;b&gt;vbcrlf&lt;/b&gt; with a &lt;b&gt;&amp;lt;br&amp;gt;&lt;/b&gt;?  This is happening in some of my own internal table code within a post (for the countdown timers) except that it' s happening on a &lt;b&gt;&amp;lt;tr&amp;gt;&lt;/b&gt; line and I would like to prevent this. &lt;br&gt;   &lt;br&gt;  BTW, I' ve come to the conclusion that this forum has the best design I' ve ever seen -- it is absolutely the least server intensive app while maintaining one of the most robust feature sets of all the ASP solutions around.  When you have Javascript parsing all the UBB/PGDCode, you *obviously* know what you' re doing.  You' ve done a hell of a job, Samuel! &lt;img src="http://www.aspplayground.net/forum/upfiles/smiley/s2.gif" alt="" /&gt; &lt;br&gt;   &lt;br&gt;  Thanks for any help/insight you can provide, &lt;br&gt;   &lt;br&gt;  Gene </description><link>http://www.aspplayground.net/forum/fb.ashx?m=373580</link><pubDate>Mon, 15 Jul 2002 00:08:00 GMT</pubDate></item><item><title> RE: " Allow HTML"  option (gene)</title><description>  I understand the security concern regarding Javascript but this is easily taken care of using search/replace functions.  For example, we had situations where people were using what I called " script images"  for various " countdown timers"  and these were calling CGI scripts on other servers which were causing pop-up ads to appear when people visited pages on our boards that had one of these script images embedded.  So we simply parsed all script images and replaced them with a standard graphic: &lt;br&gt;   &lt;br&gt;  &lt;div align="center"&gt;&lt;img src="http://www.tcoyf.com/forum/badimg.gif" /&gt;&lt;/div&gt; &lt;br&gt;   &lt;br&gt;  I also parsed out any Javascript or VBScript, as well. &lt;br&gt;   &lt;br&gt;  So while allowing any and all HTML is a security risk, if you parse it to remove any potentially harmful scripts first, it' s not a problem. &lt;br&gt;   &lt;br&gt;  The only real hazard is when someone doesn' t use table tags appropriately, as this messes up the layout of the page, but that' s easily remedied by the moderators (" DELETE" ) &lt;img src="http://www.aspplayground.net/forum/upfiles/smiley/s4.gif" alt="" /&gt;. &lt;br&gt;   &lt;br&gt;   </description><link>http://www.aspplayground.net/forum/fb.ashx?m=373579</link><pubDate>Sun, 14 Jul 2002 17:29:39 GMT</pubDate></item><item><title> RE: " Allow HTML"  option (Samuel)</title><description>  UPDATE = &amp;gt; &lt;br&gt;   &lt;br&gt;  Please see this post: &lt;a href="http://www.aspplayground.net/forum/fb.asp?m=373577" target="_blank"&gt;http://www.aspplayground.net/forum/fb.asp?m=373577&lt;/a&gt; </description><link>http://www.aspplayground.net/forum/fb.ashx?m=373578</link><pubDate>Sun, 14 Jul 2002 17:13:02 GMT</pubDate></item><item><title> " Allow HTML"  option (gene)</title><description>  I know the perils of allowing HTML in posts, but we' ve done it for a couple of years without any major consequences and our users now expect it.  I know I can modify the code to allow it but thought it should be a standard option within the forum configuration area of the admin panel, as it is in many other board applications. &lt;br&gt;   &lt;br&gt;  Thanks! &lt;br&gt;   &lt;br&gt;  Gene </description><link>http://www.aspplayground.net/forum/fb.ashx?m=373570</link><pubDate>Sun, 14 Jul 2002 11:54:25 GMT</pubDate></item></channel></rss>