(html)
| 56 | |
| 57 | // turn html into pure text that shows visiblity |
| 58 | function stripHtmlToText(html) |
| 59 | { |
| 60 | var tmp = document.createElement("DIV"); |
| 61 | tmp.innerHTML = html; |
| 62 | var res = tmp.textContent || tmp.innerText || ''; |
| 63 | res.replace('\u200B', ''); // zero width space |
| 64 | res = res.trim(); |
| 65 | return res; |
| 66 | } |
| 67 | // get html |
| 68 | function getDomFromHtml(html) |
| 69 | { |
no outgoing calls
no test coverage detected