Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-05-18 10:01:27

dlublink
Xinha Community Member
Registered: 2006-05-15
Posts: 10

< and > converted to > and <

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

#2 2006-05-23 04:16:53

adam.jimenez
Xinha Pro
Registered: 2005-04-19
Posts: 50

Re: < and > converted to > and <

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

#3 2006-05-23 09:15:17

mharrisonline
Xinha Administrator
From: Denver, Colorado
Registered: 2005-04-11
Posts: 110
Website

Re: < and > converted to > and <

I do things like that, but I place them inside comments, so they aren't corrupted.

Offline

#4 2006-05-24 03:53:26

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: < and > converted to > and <

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

Board footer

Powered by FluxBB