Web Scrapers Generator BrowserExt

removetags

Removes the specified tags with all content from a string you specify. Returns a new string.

var = removetags(html, tags);
    

Parameters:

html String with html code or an array of strings.
tags An array of strings, each element of which defines xpath expression, specifying the elements that you need to remove.

Returned value: if the html has been a string, the string is returned; if the parameter was a html string array, it returns an array of strings.

To get html code you need to use the gethtml or pageparams['page'].

Example 1. Gets the html code of each item in the list and remove div with class price.