xxxxxxxxxx
const s = "<h1>Remove all <b>html tags</n></h1>"
s.replace(new RegExp('<[^>]*>', 'g'), '')
xxxxxxxxxx
var regex = /(<([^>]+)>)/ig
, body = "<p>test</p>"
, result = body.replace(regex, "");
console.log(result);
console.log($('<p>test</p>').text());
xxxxxxxxxx
<script>
$(document).on('pageshow', function() {
if (!(/selfregistrationcancel|selfregistrationsuccess|SELF_REGISTRATION/i).test(document.location.href)) {
$('#ui_login_self_reg_button').click();
}
});
</script>