mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-03 11:40:44 +03:00
Merge pull request #2617 from ecency/nt/discard-span
remove <span> tags from post content
This commit is contained in:
commit
128c1cf669
@ -41,7 +41,11 @@ export const PostHtmlRenderer = memo(
|
||||
const postImgUrlsRef = useRef<string[]>([]);
|
||||
|
||||
// new renderer functions
|
||||
body = body.replace(/<center>/g, '<div class="text-center">').replace(/<\/center>/g, '</div>');
|
||||
body = body
|
||||
.replace(/<center>/g, '<div class="text-center">')
|
||||
.replace(/<\/center>/g, '</div>')
|
||||
.replace(/<span>/g, '')
|
||||
.replace(/<\/span>/g, '');
|
||||
|
||||
console.log('Comment body:', body);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user