Normalizing Fancy Text to Normal Text in Laravel
A Guide to Restoring Sanity to Your Text Inputs
Fancy Text
Text input from users are not at all interesting. With the advent of Unicode in the smartphones, users now have the luxury (and sometimes the whimsy) to input text in a variety of styles and formats. From emojis to diacritics, ligatures to full-width characters, the range of “fancy text” can be extremely confusing or difficult to understand by the system. While visually appealing, these text variations pose a significant challenge for the system particularly in terms of data consistency, searchability, and user experience.
Here are the example of fancy text:-
𝘕𝘦𝘪𝘨𝘩𝘣𝘰𝘳 𝘮𝘢𝘬𝘦 𝘢 𝘯𝘦𝘸 𝘤𝘰𝘯𝘯𝘦𝘤𝘵𝘪𝘰𝘯 𝘶𝘯𝘥𝘦𝘳 𝘵𝘰 𝘰𝘶𝘳 𝘮𝘦𝘵𝘦𝘳 𝘢𝘯𝘥 𝘸𝘦 𝘥𝘪𝘴𝘤𝘰𝘷𝘦𝘳𝘦𝘥 𝘪𝘵 𝘣𝘦𝘤𝘢𝘶𝘴𝘦 𝘵𝘩𝘦𝘺 𝘴𝘸𝘪𝘵𝘤𝘩 𝘰𝘧𝘧 𝘵𝘩𝘦 𝘮𝘢𝘪𝘯 𝘮𝘦𝘵𝘦𝘳 𝘢𝘯𝘥 𝘪 𝘨𝘰 𝘥𝘰𝘸𝘯 𝘵𝘰 𝘤𝘩𝘦𝘤𝘬 𝘢𝘯𝘥 𝘴𝘰𝘮𝘦𝘰𝘯𝘦 𝘨𝘰 𝘥𝘰𝘸𝘯 𝘢𝘭𝘴𝘰 𝘵𝘰 𝘰𝘧𝘧 𝘪𝘵 𝘢𝘨𝘢𝘪𝘯 𝘢𝘯𝘥 𝘤𝘭𝘢𝘪𝘮𝘪𝘯𝘨 𝘵𝘩𝘢𝘵𝘪𝘴 𝘵𝘩𝘦𝘪𝘳 𝘮𝘦𝘵𝘦𝘳, 𝘪𝘵 𝘰𝘯𝘭𝘺 𝘩𝘢𝘱𝘱𝘦𝘯𝘴 𝘵𝘩𝘪𝘴 𝘸𝘦𝘦𝘬..𝘯𝘦𝘷𝘸𝘳 𝘪𝘯 𝘵𝘩𝘦 𝘱𝘢𝘴𝘵. 𝘛𝘩𝘦 𝘺𝘦𝘭𝘭𝘰𝘸 𝘩𝘰𝘴𝘦 𝘪𝘴 𝘫𝘶𝘴𝘵 𝘯𝘦𝘸𝘭𝘺 𝘤𝘰𝘯𝘯𝘦𝘤𝘵𝘦𝘥
Looks like italic character but its not italic. Its actually belongs to Mathematical…