Remove unnecessary escape characters

This commit is contained in:
Alex Gleason 2024-08-28 19:46:19 +02:00
parent c2ea4cbfd5
commit f9d1eed4dd
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -30,7 +30,7 @@ function parseNoteContent(content: string, mentions: MastodonMention[]): ParsedN
hashtag: ({ content }) => { hashtag: ({ content }) => {
const tag = content.replace(/^#/, ''); const tag = content.replace(/^#/, '');
const href = Conf.local(`/tags/${tag}`); const href = Conf.local(`/tags/${tag}`);
return html`<a class=\"mention hashtag\" href=\"${href}\" rel=\"tag\"><span>#</span>${tag}</a>`; return html`<a class="mention hashtag" href="${href}" rel="tag"><span>#</span>${tag}</a>`;
}, },
url: ({ attributes, content }) => { url: ({ attributes, content }) => {
try { try {