My source code is showing up on the web application

Hi, I’m new to coding and currently trying to develop a website for recipes search.

I’m facing the issue where my source code is showing up on the website instead of only the texts -

"


<ol><li><span></span>Remove the cauliflower's tough stem and reserve for another use. Using a food processor, pulse cauliflower florets until they resemble rice or couscous. You should end up with around four cups of \"cauliflower rice.\"</li><li>Heat 1T butter and 1T oil in a large skillet over medium heat. Add garlic and the white and light green pieces of scallion. Sauté about a minute.</li><li>Add the cauliflower to the pan. Stir to coat with oil, then spread out in pan and let sit; you want it cook a bit and to caramelize (get a bit brown), which will bring out the sweetness. After a couple of minutes, stir and spread out again.</li></ol>

"

How do I make the conversion? Any help or advice would be greatly appreciated!

most likely your html has some syntax errors and that is why it is showing up on the page.
Try to use a html validator like this one

And if that doesn’t help, then try to re-write your code, one small section at a time till you find the mistake. (usually something like a missing angled bracket is the cause)

Hi, when I copied your code it works fine.

Parses like this

1. Remove the cauliflower's tough stem and reserve for another use. Using a food processor, pulse cauliflower florets until they resemble rice or couscous. You should end up with around four cups of \"cauliflower rice.\"
2. Heat 1T butter and 1T oil in a large skillet over medium heat. Add garlic and the white and light green pieces of scallion. Sauté about a minute.
3. Add the cauliflower to the pan. Stir to coat with oil, then spread out in pan and let sit; you want it cook a bit and to caramelize (get a bit brown), which will bring out the sweetness. After a couple of minutes, stir and spread out again.

It’s probable that you’ve got a syntax error somewhere else (probably around that ol)
that makes the parser confused as hbar1st mentioned. Does it show the whole source code or just a part? If it shows only the source code for the ol, then the problem probably lies somewhere around that ol.

And you don’t have to escape a " character.

Have a nice day

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.