Any idea how to find and replace the HTML font-size in style attribute?
eg. <span style="font-size:12px">hello world</span>
I would like to remove all font-size using javascript.
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
OH GOD NO NOT REGULAR EXPRESSIONS AAAAAAHHHHHH 😉 You should do this using the DOM manipulation methods of Javascript – that’s what they’re there for.
Here’s one reference.