in reply to Re: A call to keyboards: Better chatterbox wrapping
in thread A call to keyboards: Better chatterbox wrapping
This is pretty much the kind of thing we are looking for. But its mangled the href in the A tag for the BBC. Its essential that the wrapping text doesnt mess with the insides of tags or anything that HTML would normally render. So & cant be wrapped internally. Likewise anything inside of a tag should be left alone. (You can use /<[^>]+>/ for matching tags, we aren't that picky.)
Note that the content of the chatter has been preprocess before this code executes, so you dont need to worry about fake tags or anthing like that. If something is a valid tag it will match /<[^>]+>/ already. Anything that isnt valid will be modified to not match that pattern.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: A call to keyboards: Better chatterbox wrapping
by BrowserUk (Patriarch) on Jan 10, 2005 at 15:22 UTC | |
by demerphq (Chancellor) on Jan 10, 2005 at 16:30 UTC | |
by BrowserUk (Patriarch) on Jan 10, 2005 at 16:53 UTC |