Merge branch 'development' of https://github.com/ecency/ecency-mobile into sa/transfer-points-custom-json

This commit is contained in:
Sadaqat Ali 2023-02-05 18:40:58 +05:00
commit 54f339bcf7

View File

@ -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);