1084

Problem entering code into Question Body

Comments for “Problem entering code into Question Body”
 

Posted by DaddyJohn on Saturday 30th April 2022 at 07:22 GMT

Hi, trying to submit a question this morning.

However, when trying to add any code
 
it is only publishing the first line or so and then cuts off the rest of any content code or otherwise.
Early Adopter

DaddyJohn

User Level: Early Adopter

Date Joined: 23/01/2022

Posted by DaFa on Saturday 30th April 2022 at 08:32 GMT

Ensure you replace any HTML tags with HTML entities otherwise they will be stripped out and same for the opening php tag
Founding Member

DaFa

User Level: Founding Member

Date Joined: 30/11/2018

Posted by DaddyJohn on Saturday 30th April 2022 at 08:59 GMT

thanks - but that is a lot of tags to strip out.

Can I post the code somewhere else for it to be viewed?
Early Adopter

DaddyJohn

User Level: Early Adopter

Date Joined: 23/01/2022

Posted by mirandakimel on Saturday 30th April 2022 at 09:32 GMT

Would this tool help? https://www.online-toolz.com/tools/text-html-entities-convertor.php

mirandakimel

User Level: Guest

Date Joined: 8/07/2021

Posted by DaFa on Saturday 30th April 2022 at 15:25 GMT

Nice online tool D3mon, will bookmark that :) I usually just string replace with a ctrl + h
Founding Member

DaFa

User Level: Founding Member

Date Joined: 30/11/2018

×