Gerenne Vives wrote:There are any form to extract the style code?
Well, as far as I know, DOM allows you pull, traverse, skip or remove any section between named tags, so I suggest you give the API a good read. I also found this tutorial from IBM, who are usually pretty good, but I can't vouch for it personally. Otherwise, there's this one, or the Oracle one.
Isn't it funny how there's always time and money enough to do it WRONG?
Joined: Feb 07, 2012
I tend to use Microsoft Word macros a lot when dealing with HTML documents. If you don't know how to use Microsoft Word macros, you can use Microsoft Word's Find and Replace instead.
Find \<style*\/style\> and replace with nothing. This will delete all of the <style> elements in your HTML document. Remember to check the "Use Wildcards" box before running Find and Replace.
You can also use TextPad or any other text editor that understands REGEX.
I'm assuming that your HTML document contains the <style> element and not <styles>