replace small tag with pixel size
Posted: Mon Aug 04, 2008 5:36 pm
can someone help me replace the <small> tag with a pixel size using an array?
the key being the amount of consecutive <small> tags and value their pixel equivalent. the array is optional if there is another way to hold the conversion information.
for example:
thanks for any help you can provide!
Code: Select all
array("1"=>"10px","2"=>"8px"); for example:
Code: Select all
<small>hello world</small> would print at 10px
<small><small>hello world</small></small> would print at 8px