gotosocial/internal/web
Daenney 074f352709
[chore] improve opengraph descripiton tag (#1550)
This changes parseDescription to properly encode things to be safe for
usage without removing things like backslashes that may be relevant.

* text.SanitizePlaintext already calls html.UnescapeString so we don't
  have to do that
* Replace \n with space early
* Remove duplicate white-space by splitting on fields and joining
* HTML-escape the string we have
* For extra certainty, encode the backslash as \

Fixes #1549
2023-02-22 21:36:18 +00:00
..
about.go [feature] About page (#1495) 2023-02-20 16:29:29 +01:00
assets.go [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
base.go [feature] Implement /api/v2/instance endpoint (#1409) 2023-02-02 14:08:13 +01:00
confirmemail.go [chore] Deinterface processor and subprocessors (#1501) 2023-02-22 16:05:26 +01:00
customcss.go [chore] Deinterface processor and subprocessors (#1501) 2023-02-22 16:05:26 +01:00
domain-blocklist.go [feature] About page (#1495) 2023-02-20 16:29:29 +01:00
etag.go [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
opengraph.go [chore] improve opengraph descripiton tag (#1550) 2023-02-22 21:36:18 +00:00
opengraph_test.go [chore] improve opengraph descripiton tag (#1550) 2023-02-22 21:36:18 +00:00
profile.go [chore] Deinterface processor and subprocessors (#1501) 2023-02-22 16:05:26 +01:00
robots.go [feature] Public list of suspended domains (#1362) 2023-01-25 18:06:41 +01:00
rss.go [chore] Deinterface processor and subprocessors (#1501) 2023-02-22 16:05:26 +01:00
settings-panel.go [feature] Implement /api/v2/instance endpoint (#1409) 2023-02-02 14:08:13 +01:00
thread.go [chore] Deinterface processor and subprocessors (#1501) 2023-02-22 16:05:26 +01:00
web.go [chore] Deinterface processor and subprocessors (#1501) 2023-02-22 16:05:26 +01:00