You are not logged in.
Pages: 1
Hey,
I am using xinha on a website that has 'special tags' in the format <#tag_name#>something</#tag_name#>.
They are always getting replaced by <#tag_name#> etc...
Is this Firefox/Internet Explorer who is converting it or is xinha converting it?
I figure if I use a string replace using a regular expression I can convert them back. Anyone know the best place to do this? Or stop it from happening in the first place.
Thanks,
David
Offline
For the tags to be displayed in preview mode they have to be < otherwise they will be interpreted as an actual tag.
I don't think this is so much a problem with xinha. More a poor choice of special tags.
Regex could be the answer but it could be a pain to implement.
When you choose special tags you should go for something that isn't in use. I normally go for curly brackets ie {$foo} or you could use bbcode ie bold text.
Offline
I do things like that, but I place them inside comments, so they aren't corrupted.
Offline
Xinha only edits HTML, your special tags are not part of HTML, so you need to work around it somehow with some string replacements on the server side of things as you imagined.
James Sleeman
Offline
Pages: 1