mirror of https://github.com/vector-im/riot-web
Merge pull request #1373 from matrix-org/dbkr/code_copy_only_html
Only add the code copy button for HTML messagespull/21833/head
commit
e1aefd2119
|
@ -393,7 +393,7 @@ export function bodyToHtml(content, highlights, opts) {
|
|||
}
|
||||
safeBody = sanitizeHtml(body, sanitizeHtmlParams);
|
||||
safeBody = unicodeToImage(safeBody);
|
||||
safeBody = addCodeCopyButton(safeBody);
|
||||
if (isHtml) safeBody = addCodeCopyButton(safeBody);
|
||||
}
|
||||
finally {
|
||||
delete sanitizeHtmlParams.textFilter;
|
||||
|
|
Loading…
Reference in New Issue