PHP Classes

one problem found

Recommend this page to a friend!

      Fete Search Highlighter  >  All threads  >  one problem found  >  (Un) Subscribe thread alerts  
Subject:one problem found
Summary:escape link problem swfobject
Messages:4
Author:ceasar
Date:2009-06-25 07:59:32
Update:2009-06-26 05:53:37
 

  1. one problem found   Reply   Report abuse  
Picture of ceasar ceasar - 2009-06-25 07:59:32
Thanks for this class.
Looks promising.
However I found one issue
It doesn't escape all links

Example
s1cd8b59012a51cedd1d361894377877a0.addParam("flashvars","file=http://gdata.<span class="highlight">youtube</span>.com/feeds/api/videos%3Fvq%3Ddiamonds+neckless%26format=5%26orderby=rating%26max-results=50%26start-index=1&amp;playlist=bottom&amp;fullscreen=true&amp;logo=./cmsimg/cfcmslogo.png&amp;skin=./includes/swf/Stijl.swf&amp;stretching=exactfit&amp;autostart=true");

search word youtube and it found youtube in this swfobject
gdata.<span class="highlight">youtu ...
In this case I will get an js error

  2. Re: one problem found   Reply   Report abuse  
Picture of ceasar ceasar - 2009-06-25 08:11:49 - In reply to message 1 from ceasar
Another issue in a page

<script type="text/javascript">
var pagecontent=new virtual<span class="highlight">pagina</span>te("feedbackCONTENT_74", 3)
pagecontent.build<span class="highlight">pagina</span>tion("<span class="highlight">pagina</span>tedivCONTENT_74")
</script>

In this case it highlights words in js on a page in case it will be broken

  3. Re: one problem found   Reply   Report abuse  
Picture of Nguyen Duc Thuan Nguyen Duc Thuan - 2009-06-25 13:22:51 - In reply to message 2 from ceasar
Thanks for your comment. I will change the class to ignore text within some special HTML tags.

  4. Re: one problem found   Reply   Report abuse  
Picture of ceasar ceasar - 2009-06-26 05:53:37 - In reply to message 3 from Nguyen Duc Thuan
Thank you :)
Works great now