So I have following string:
var s = \'Some Text Some other Text\';
The result should be a string with the content
A very simple approach:
var html = 'Remove tags & entities'; var noTagText = $(html).text(); // ==> noTagText = 'Remove tags & entities'
Note that it will remove tags but also html entities.