Hi

Is there anyway I can re-order HTML attributes? The problem I have is a weird 
one, I am comparing body of strings, so basically I have some HTML stored in 
xml, I extract the required xml using xpaths into a database, the stored HTML 
in the database is then edited by users using FCKEditor, the edited version is 
then compared with the original version (xml file) to see the similarity 
between the bodies of the 2 strings, unfortunately FCKEditor changes the order 
of all HTML attributes from the xml file before insertion into database, so 
e.g. <table border="1" cellpadding="2" cellspacing="2" class="lbits">
 becomes <table class="learning-bite" border="1" cellspacing="2" 
cellpadding="2">, same thing is done concerning image tags, tr, td...basically 
any tag with attributes, so a little change in a chunk of text full of tables 
and/or images exgerrates the changes on a page.

I guess I'm asking 2 questions in one, how can stop FCKEditor from changing 
HTML attributes but if it's not possible (I've spent all week going down that 
road)? How can I maintain the order of attributes in the original string into 
the the edited chunk of text?

Thanks for any feedback. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322997
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to