Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcodes add newlines to the output #8

Closed
toxadx opened this issue Mar 7, 2025 · 3 comments · Fixed by #9
Closed

Shortcodes add newlines to the output #8

toxadx opened this issue Mar 7, 2025 · 3 comments · Fixed by #9
Assignees

Comments

@toxadx
Copy link

toxadx commented Mar 7, 2025

Shortcodes (encode-tel, encode-email) introduce newlines into the generated HTML output. These newlines are displayed as spaces in browsers. The output should be generated without newlines to prevent this issue.

@razonyang
Copy link
Member

razonyang commented Mar 8, 2025

This module seems not working in some platform (encoding not affact, that is, the plaintext will be shown), so I would not recommend using it.

@razonyang razonyang self-assigned this Mar 8, 2025
@toxadx
Copy link
Author

toxadx commented Mar 9, 2025

Could you please give some details on that?

@razonyang
Copy link
Member

The principle of this module is to convert the plaintext into ascii codes, however some platform seems will convert encoded text back to the plaintext. You should check if the output on production (CTLR+U to check the source of your page).

This module protection is quite limited due to the principle.

And this issue should be fixed now, please upgrade to latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants