From: Peter Jay Salzman <p@di...> - 2004-04-17 12:20:23
I just set up slashcode for the first time a few days ago.
Holy smokes, what an experience! That was NOT for the faint of heart.
On the bright side, I learned a whole lot more about Apache in the
Anyway, is there a way to force <A> tags to behave nicely in the subject
of a story? For instance, when I have a subject of:
<B>Hi</B> there, <A href=\"http://www.google.com\">pilgrim</A>!
The subject in the main home page displays as:
Hi there, pilgrim!
Except the pilgrim link is colored the same as the titlebar making it
invisible (until it's clicked, then it turns into the visited link color
of black), but worse, the URL is relative to my base url:
The url problem persists even if I don't escape the double quotes in the
Furthermore, what you see on the main home page is not what you see on
the stories page. On the stories page, "pilgrim" is completely missing.
I guess that makes sense because AFAIK you can nest <A> tags. I don't
really care about that, though. As long as it works correctly from the
main home page.
Putting URLs the title looks to be completely broken. Is there a way to
Make everything as simple as possible, but no simpler. -- Albert Einstein
GPG Instructions: http://www.dirac.org/linux/gpg
GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D
On Apr 17, 2004, at 8:09 AM, Peter Jay Salzman wrote:
> Hi all,
> Putting URLs the title looks to be completely broken. Is there a way
> fix this?
No, not broken - I think that's default behavior. The editstory template
<INPUT TYPE="TEXT" NAME="title" VALUE="[% storyref.title |
strip_attribute %]" SIZE="50">
and I think the strip_attribute code is just a wrapper for stripByMode.
So I the admin code may strip HTML from the story title out-of-the-box.
One of the OSDN guys can probably tell you forsure if I'm right/wrong,
look at the code yourself to find out.