Benjamin Juang (ibneko) wrote,
Benjamin Juang

Testing HTML comments in LiveJournal posts. If they show up on livejournalbridge's friends page, I'll be able to use that as an option for stuff...

[ edit ]
And it doesn't show up. Damnations.
Ok, what about normal looking tags. Oh, such as <a name="">? or <div LiveJournalToXanga= disabled>?

[ edit ]
Heh, ok, both a and div work. Nice. div might work better but there's a possibility it might break something. Hm, why not do it for both? using <a LiveJournalToXanga=disabled>

Note to self: livejournal checks tags for niceness and will add their own </div> and </a> if you don't close them correctly.

Oooh, no, I know, I can use a spiffy complex setup like the <lj-cut> tag and have it set up so a livejournal post that says:
blah blah blah
<a LiveJournalToXanga="disabled" name="[a name]" text="[message]">word word words</a>
babble more...

will cause the post to show:
blah blah blah
(<a href="[entry link]#[a name]">[message]</a>)
babble more...

Hehe, yeah, I like that. Then users can control what shows up on the other server. Mmm, and it shouldn't affect anything on the livejournal side, since the a names="" don't show up.

The only problem is if a user has a link inside the a name="" chunk..?
This is the test. Go to Xanga. After this period, we close the first a name="" tag?

[ edit ]
Nevermind, that doesn't seem to be an issue. I'll just have to make sure I don't accidentally parse the first </a> tag as the end of the LiveJournalToXanga disabling chunk.

[ edit | last time, I promise. After this, I'll start using new entry so you guys can be even more annoyed at me. ]
xella, I'm still interested in/have not forgotten about writing the S2 code for you. It's just that I think I'm going to need more time than I have this weekend to read up on S2 and play around with it on my own server before commiting myself to writing yours. Sadly, S2 isn't really that similar to perl... I don't even know if it supports regexp yet. If it doesn't, that sucks, because regexp is annoying but damn useful (4-12 lines of code can be writen as in one line of regexp). Oh, but I do want to know:
1) You can create top level layers, right?
2) Can I take a look at what you want it to look like? That way I'll know which way to work towards...

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded