diff options
author | Neil Matatall <448516+oreoshake@users.noreply.github.com> | 2022-12-15 05:39:41 -1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-15 16:39:41 +0100 |
commit | 1f5740e65cc50ef3cc1feb7c0e5609df73d4173a (patch) | |
tree | 18f0786d828afc8860e684ffb5d9474c30756224 /db/seeds/03_roles.rb | |
parent | 3d3429243fa0bacb20aac3db6c377441c0510f22 (diff) |
Use Rails tag API to build RSS feed for spoilers and polls (#20163)
* Use Rails tag API to build RSS feed for spoilers and polls While the previous method did not contain a bug or a potential issue, the tag API can be very resilient against future problems and reduces the amount of manual management of the escape status of the content. I've added tests to ensure that the formatting is broken and still escapes control characters correctly. * this seems cleaner and passes * Incorporate feedback by moving the br to its own line and using the tag helper over the string constant for the br tag itself * whoops, tag helper doesn't use a self-closing tag
Diffstat (limited to 'db/seeds/03_roles.rb')
0 files changed, 0 insertions, 0 deletions