I use the following script to remove html tags from a string.
I use the following script to remove html tags from a string- function removeHTMLTags(htmlString) { if(htmlString) { var mydiv = document. CreateElement("div"); mydiv. InnerHTML = htmlString; if (document.
All) // IE Stuff { return mydiv. InnerText; } else // Mozilla does not work with innerText { return mydiv. TextContent; } } } not exactly sure but I think /gi part indicates global replace like in string.
Replace in javascript.
I needed to grab some divs of html and copy them into a textarea. I got it all into one line like this: $('#yourTextarea'). Val($('#yourTextarea').val()+$('.
YourHTMLdivs').text(). Replace(/ +(?= )/g,'')); The '. YourHTMLdivs' is the section that gets copied and stripped.
The .text() is what strips out the html. The .replace() at the end takes out extra whitespace. Doing it this way, your information is all stripped and set to go BEFORE it goes into the textarea.(I worked this out after reading three or four similar problems on StackOverflow!
Great stuff here. ).
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.