Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: XML-style readmore not being parsed (no kidding)

by tye (Sage)
on Jan 21, 2003 at 22:42 UTC ( [id://228874]=note: print w/replies, xml ) Need Help??


in reply to XML-style readmore not being parsed

People don't generally type well-formed XML very accurately so we don't parse the text you enter as XML.

You can say <readmore> and </readmore>. It doesn't make much sense to support <readmore /> since it isn't a self-contained tag but rather an opening tag that applies to the rest of your text. A closing tag is assumed at the end for the sake of sanity. If this bothers you, then put the closing tag in at the end yourself.

You can't even insert spaces in either the opening or closing tag. We ignore letter case, that's it. You can't even just stuff it inside <code> tags as the processing of READMORE, CODE, [links], and HTML are all done in separate passes (in part because some content only has some of these applied and in part for historical reasons) and READMORE is processed before CODE (in part for efficiency and in part for hysterical raisins).

                - tye

Thanks to jeffa for pointing out my typo.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://228874]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-24 02:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found