diff options
| author | 2026-03-14 00:44:19 +0300 | |
|---|---|---|
| committer | 2026-03-14 00:44:19 +0300 | |
| commit | e5d6f4c02b757c83244ba5e04fead08623a27299 (patch) | |
| tree | 5b5babb9887cafa3dbc165928dc2b0fd65265bda /internal/target/html.go | |
| download | pose-e5d6f4c02b757c83244ba5e04fead08623a27299.tar.gz pose-e5d6f4c02b757c83244ba5e04fead08623a27299.tar.bz2 pose-e5d6f4c02b757c83244ba5e04fead08623a27299.tar.xz pose-e5d6f4c02b757c83244ba5e04fead08623a27299.zip | |
начальный коммит
Diffstat (limited to '')
| -rw-r--r-- | internal/target/html.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/internal/target/html.go b/internal/target/html.go new file mode 100644 index 0000000..84d8662 --- /dev/null +++ b/internal/target/html.go @@ -0,0 +1,14 @@ +package target + +import "strings" + +func processHTML(html string) string { + html = strings.ReplaceAll(html, "\n", " ") + html = strings.ReplaceAll(html, "<br>", "\n") + html = strings.ReplaceAll(html, "<br />", "\n") + html = strings.ReplaceAll(html, "<br/>", "\n") + html = strings.ReplaceAll(html, "<p>", "") + html = strings.ReplaceAll(html, "</p>", "\n") + + return html +} |
