12345678910 |
- package template
- // StripTags takes a snippet of HTML and returns only the text content.
- //
- // For example, `<b>¡Hi!</b> <script>...</script>` -> `¡Hi! `.
- //
- // This function exports the private html/template/stripTags function.
- func StripTags(html string) string {
- return stripTags(html)
- }
|