[dev] text2html issue

Michael Rubinsky mike at theupstairsroom.com
Fri Jun 15 15:45:17 UTC 2007


Quoting Chuck Hagenbuch <chuck at horde.org>:

>>> I'm not really sure if this is an issue with Text_Filter per se, but
>>>  I've come across a problem that I can't quite track down. Not
>>> filing  on bugs since I'm not 100% sure where the problem lies yet...
>>>
>>> Within Ansel,  using TEXT_HTML_MICRO while parsing captions in
>>> various  places seems to completley break the page.  It seems to
>>> have something  to do with where the imp javascript is included. The
>>> issue does not  happen when you force a mailto: url.
>>>
>>> To reproduce: set a image caption to contain something resembling a
>>> valid email address, then try to view the gallery page that contains
>>>  that image tile... Similar issue when viewing the image view as well.
>>>
>>> Changling parselevel to TEXT_HTML_MICRO_LINKURL fixes the issue in
>>> Ansel, but didn't know if there was some other underlying issue here
>>>  that needed to be looked into?
>>
>> If you haven't fixed this yet, this sounds like a bug (don't know if
>> you already filed one or not).
>
> In other situations like this sometimes the solution is to make sure
> that the javascript gets includes in the <head> instead of waiting to
> figure out it's there later. The long-term solution is something like
> Horde_View with a script_tag helper, taking advantage of output
> buffering.

Ah. Should finish reading the thread before responding :)

That was my thought exactly, but wasn't sure of the best way to fix at  
the moment.



Thanks,
mike

--
The Horde Project (www.horde.org)
mrubinsk at horde.org

"Time just hates me. That's why it made me an adult." - Josh Joplin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 2013 bytes
Desc: PGP Public Key
Url : http://lists.horde.org/archives/dev/attachments/20070615/451cdbad/attachment-0001.bin 


More information about the dev mailing list