Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Army Builder Forums > Army Builder
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
technorat
Junior Member
 
Join Date: Apr 2009
Location: Eindhoven, The Netherlands
Posts: 11

Old April 27th, 2009, 07:19 AM
Hi guys,

I would like to be able to remove the font formatting from the HTML Output that is generated by Army Builder. This would allow me to just use my own style sheets if I want to display armies for viewing on my own website (rather than having to remove all the <font> tags myself). Is this possible?

The other option I have read of is to just apply an xsl stylesheet to the xml in the roster file but this would end up being a bit more involved and I'd like to avoid it.

Thanks for any help!
technorat is offline   #1 Reply With Quote
Jamz
Senior Member
 
Join Date: Aug 2005
Location: Chicagoland
Posts: 397

Old April 27th, 2009, 08:00 AM
Another option you could use is to write a JavaScript function to strip all the <font> tags out. You can easily do this with a for loop and walk through the html by tag type (ie font or any other tags you want to remove).

Is the HTML XHTML compatible?

-Jamz

RPTools.net | MapTool Discord Invite

Download Latest MapTool Release | Download Latest TokenTool Release
Jamz is offline   #2 Reply With Quote
technorat
Junior Member
 
Join Date: Apr 2009
Location: Eindhoven, The Netherlands
Posts: 11

Old April 27th, 2009, 10:47 AM
Thanks for the reply! I could just script it by program or even a text editor with regular expressions. I was just curious if there was some option in Army Builder to do it automatically.

It seems well formed so should be xhtml compatible and pretty easily parsable by program.

I'll keep playing with it but I appreciate the response. Cheers.
technorat is offline   #3 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 07:08 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.