Skip to content
Advertisement

How to retrieve data from HTM file and convert to json using in Javascript (Vue)

I’m trying to upload a HTM file using in Vue. The data is actually a styled table using , , etc…

My question is that, is it possible to filter out the tabulated data in HTM into other forms of data, say JSON? – Picture below (taken from browser elements of the htm) – Basically I just want to filter out html syntaxes and just retrieve the data.

enter image description here

Advertisement

Answer

Solution: use RegEx to filter HTML syntaxes.

Similar post: Regular expression to remove HTML tags from a string

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement