Legacy Knowledge Base
Published Jun. 30, 2025

Zero-Width Spaces in Web Content

Written By

Apsara Raheja

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

NOTE: Liferay Support does not recommend or endorse specific third-party products over others. The information provided about products not created by Liferay is for reference purposes only, and any implementation of these principles will be at your team's discretion.

Issue

  • Web content has zero-width spaces, which are adversely impacting search ranking.
  • How to remove those invisible zero-width spaces?

Environment

  • Liferay DXP 7.3+

Resolution

  • Zero-width space (ZWSP) is a non-printing character used in computerized typesetting to indicate word boundaries where explicit spacing is not used.
  • Sometimes, the ZWSP occurs from copying and pasting content from external sources.
  • If the user wants to remove zero-width spaces from the content, they can utilize one of the online tools, i.e., unspoof-unicode-text
    Warning: This is NOT an official Liferay tool, nor is it supported by Liferay in any way.
  • Alternatively, manually typing the content instead of copying and pasting can prevent this zero width spaces.

Additional Information

 

Did this article resolve your issue ?

Legacy Knowledge Base