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

Duplicate string containing an @ #54617

Closed
Pxngel opened this issue Feb 27, 2024 · 5 comments
Closed

Duplicate string containing an @ #54617

Pxngel opened this issue Feb 27, 2024 · 5 comments
Labels
area: core Issues related to the framework runtime core: hydration
Milestone

Comments

@Pxngel
Copy link

Pxngel commented Feb 27, 2024

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

No

Description

When I try to display an email or any value that contains an @ and immediately after contains text:
Let's say
" aaaaddddda.com@" + "adad.com"
The value is always doubled when displayed in the html.

image image image

(

Please provide a link to a minimal reproduction of the bug

https://seo.neixtmedia.com/

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 17.2.1
Node: 18.14.0
Package Manager: npm 9.3.1
OS: darwin arm64

Angular: 17.2.2
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1702.1
@angular-devkit/build-angular   17.2.1
@angular-devkit/core            17.2.1
@angular-devkit/schematics      17.2.1
@angular/cli                    17.2.1
@angular/ssr                    17.2.1
@schematics/angular             17.2.1
rxjs                            7.8.1
typescript                      5.2.2
zone.js                         0.14.4

Anything else?

No response

@JeanMeche
Copy link
Member

JeanMeche commented Feb 27, 2024

Hello, your app is using SSG with hydration.
It looks like you have a script that is messing we the DOM ahead of the hydration. The DOM should not be altered ahead of hydration.

You probably have an error logged in the console when running the app in debug mode.

@JeanMeche JeanMeche added area: core Issues related to the framework runtime core: hydration labels Feb 27, 2024
@ngbot ngbot bot modified the milestone: needsTriage Feb 27, 2024
@Pxngel
Copy link
Author

Pxngel commented Feb 27, 2024

Hello, your app is using SSG with hydration. It looks like you have a script that is messing we the DOM ahead of the hydration. The DOM should not be altered ahead of hydration.

You probably have an error logged in the console when running the app in debug mode.

Hello, thank you for answering, I was checking and I did not detect any type of error when compiling, I attach the code that I am testing

https://github.com/Pxngel/error-duplicaded-angular

@JeanMeche
Copy link
Member

JeanMeche commented Feb 27, 2024

Interesting, the code was present in your example but it seems like it is something enabled by cloudflare. It detects an inline email address an obfuscates it to prevent it from being collected.

see: https://developers.cloudflare.com/waf/tools/scrape-shield/email-address-obfuscation/

@Pxngel
Copy link
Author

Pxngel commented Feb 27, 2024

Thank you very much, that was it.

@Pxngel Pxngel closed this as completed Feb 27, 2024
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: core Issues related to the framework runtime core: hydration
Projects
None yet
Development

No branches or pull requests

2 participants