This one was mostly written by Copilot so it's not great. For posts containing bridgyOriginalText or fullText it will render the HTML in place of the bridged RichText. The sanitizer was directly translated from Mastodon's at https://github.com/mastodon/mastodon/blob/main/lib/sanitize_ext/sanitize_config.rb. Ruby text is unimplemented as I have no idea what is a good way to do that in React Native.
+42
-18
src/screens/PostThread/components/ThreadItemAnchor.tsx
+42
-18
src/screens/PostThread/components/ThreadItemAnchor.tsx
···+import {MastodonHtmlContent, useHasMastodonHtmlContent} from '#/components/Post/MastodonHtmlContent'······
+46
-20
src/screens/PostThread/components/ThreadItemPost.tsx
+46
-20
src/screens/PostThread/components/ThreadItemPost.tsx
·········
+27
src/screens/Settings/DeerSettings.tsx
+27
src/screens/Settings/DeerSettings.tsx
·········
+2
src/state/persisted/schema.ts
+2
src/state/persisted/schema.ts
······
+10
-7
src/state/preferences/index.tsx
+10
-7
src/state/preferences/index.tsx
······
+49
src/state/preferences/render-mastodon-html.tsx
+49
src/state/preferences/render-mastodon-html.tsx
···
+54
-22
src/view/com/posts/PostFeedItem.tsx
+54
-22
src/view/com/posts/PostFeedItem.tsx
·········