]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/renderer/html-renderer.service.ts
Support basic markdown in comments
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / renderer / html-renderer.service.ts
index 28ef51e727b51be1d3e5d20f7cacb02f69a1b135..94a8aa4c655742aa929350f4647e75189cfab6ce 100644 (file)
@@ -16,7 +16,7 @@ export class HtmlRendererService {
     const html = this.linkifier.linkify(text)
 
     return sanitizeHtml(html, {
-      allowedTags: [ 'a', 'p', 'span', 'br' ],
+      allowedTags: [ 'a', 'p', 'span', 'br', 'strong', 'em', 'ul', 'ol', 'li' ],
       allowedSchemes: [ 'http', 'https' ],
       allowedAttributes: {
         'a': [ 'href', 'class', 'target' ]