Closed kaiceo closed 1 year ago
// js code of content
function fixHtmlEscapes(strTranslation) { var strText = unescape(strTranslation); strText = strText.replace(/'/gi, '"'); strText = strText.replace(/«/gi, '\«'); strText = strText.replace(/»/gi, '\»'); strText = strText.replace(/‘/gi, '\‘'); strText = strText.replace(/’/gi, '\’'); strText = strText.replace(/“/gi, '\“'); strText = strText.replace(/”/gi, '\â€'); return strText; }
screenshot:
//my code frEle, err := c.Page.QuerySelector(sel) if err != nil { return err } fr, err = frEle.ContentFrame() if err != nil { return err } fmt.Println(fr.Content())
return part content as below
// js code of content
screenshot:![image](https://user-images.githubusercontent.com/63705580/194249369-90d0258a-6154-4af4-9ef3-3e030f5066b4.png)
return part content as below![image](https://user-images.githubusercontent.com/63705580/194249642-d3d74ffb-593a-49c5-83a9-990baaab01d5.png)