Hi,
Can you guide me on how to get rid of HTML and CSS and Javascript from a text file?
example : #fb_dialog_loader_close{clear:both;color:#fff;display:block;font-size:18px;padding-top:20px}#fb-roote
#fb_dialog_ipad_overlay{background:rgba(0, 0, 0,
.4);bottom:0;left:0;min-height:100%;position:absolute;right:0;top:0;width:100%;z-index:10000}#fb-roote
#fb_dialog_ipad_overlay.hidden{display:none}.fb_dialog.fb_dialog_mobile.loading
iframe{visibility:hidden}.fb_dialog_mobile
.fb_dialog_iframe{position:sticky;top:0}.fb_dialog_content
.dialog_header{background:linear-gradient(from(#738aba),
to(#2c4987));border-bottom:1px solid;border-color:#043b87;box-shadow:white 0 1px
...
Fermer var SM = window.SM || {}; SM.GDPR = {}; SM.GDPR.hasGDPRConsent = "True"
M.GDPR.GDPRBannerEnabled = "True" === 'True'; SM.GDPR.host =
"fr.surveymonkey.com" SM.Cookies = { get: function(name) { // returns only the
first one var oCrumbles = document.cookie.split(';'), oPair, sKey, sValue, i;
for (i = 0; i < oCrumbles.length; i++) { oPair = oCrumbles[i].split('='); sKey =
decodeURIComponent(oPair[0].trim()); sValue = oPair.length > 1 ? oPair[1] : '';
if (sKey === name) { return decodeURIComponent(sValue); } } return ''; }, set:
function(name, value, expires, options) { /** Arguments: - name cookie name -
value cookie value - expires expiration length in age string (e.g. '52d',
'1y5o'), can also pass in ms - options - a dictionary of options -path cookie
path **/ var date, ms, sCookie = ''; if (typeof expires === 'string') { ms =
SM.Date.ageToMilliseconds(expires); } else { ms = expires; } date = new Date();
date.setTime(date.getTime() + ms); if (options && typeof options === 'object') {
thanks
Regis
Bookmarks