There are several ways to do this, I'll show them from the easiest and the least precise to the most accurate so that you can choose the one that best solves your problem.
First you need to know that the strings in Javascript can be accessed as an array, so you could check if the string starts with a > simply by accessing the index 0 of the string as follows.
if (conteudo[0] === ">") {}
I'm just checking for the > character, if you need this characters to be double-quoted, then you can do 3 checks on the string as follows.
if (conteudo[0] === '"' && conteudo[1] === '>' && conteudo[2] === '"'){}
This form is simple but it is a bad practice, so let's try to check the whole group at a time.
if (conteudo.indexOf('">"') === 0) {}
The indexOf returns the index of the string where the last substring appears as an argument to the function. In this case, 0 means that it occurs at the beginning of the string.
This works a little better and is better to read and easier to maintain the code, but still is not the best solution because it does not take into account that your line can start with a space character, so let's use regular expression to see how would it look.
var re = /^\s*">"/;
if (re.exec(conteudo)){}
Now we have a regular expression that checks whether the content variable starts with any one, one or more spaces followed by ">" and we use the exec function to check if the string contained in the variable contents satisfies the condition of our regular expression . So I think this is the best solution, even for you to create different tags in the future. Maybe I'm wrong about the regular expression and there is a better way, our StackOverflow colleagues will help us with this but I believe that the path you have to take to get what you want follow these clues I left here. Any doubt, and take into account that in the examples I use a variable named content, which should contain the content of its element p.