先上代码
regexp_replace("source_html",'\s*(<[^>]+>|<script.+?<\/script>|<style.+?<\/style>)\s*','','gi')
作用,使用regexp_replace函数,清理html标签,也包括整个<script>...</script>, <style>...</style>的代码块。
先上代码
regexp_replace("source_html",'\s*(<[^>]+>|<script.+?<\/script>|<style.+?<\/style>)\s*','','gi')
作用,使用regexp_replace函数,清理html标签,也包括整个<script>...</script>, <style>...</style>的代码块。