0

I having been trying to find an explanation to no avail, but can anyone suggest why there is a script tag in XML and can this be removed using PHPs SimpleXMLElement.

If we see the image below the second tag is a self closing script tage <script/>.

enter image description here

Below are a number of other examples of this tag appearing. When I am creating my own XML using SimpleXMLElement I notice I too get this tag.

https://www.w3schools.com/xml/simple.xml

https://www.w3schools.com/xml/cd_catalog.xml

https://www.w3schools.com/xml/plant_catalog.xml

Can anyone tell me why this is included and is there any way to remove this?

1 Answer 1

2

Below are a number of other examples of this tag appearing.

No, those files do not contain that tag. Download and inspect them using something other than your default browser. Likely you have some browser extension which injects a script into any and all pages.

Sign up to request clarification or add additional context in comments.

1 Comment

This is absolutely the answer. Should have downloaded one and checked. Many thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.