RocketChat/Rocket.Chat

View on GitHub
apps/meteor/lib/utils/safeHtmlDots.ts

Summary

Maintainability
A
0 mins
Test Coverage
// default email engines - like gmail - will render texts with dots as an anchor tag.
// If we can, we should avoid that.
export const safeHtmlDots = (text: string): string => {
    return text.replace(/\./g, '&#8228');
};