Sorry if this is not an appropriate question for this forum. But I could use some guidance.

 

I have the following data:

 

<p>Here is some text<add>and data</add>. And another sentence</p>

 

When I format the content in </add> I need to know that the next character in <p/> is punctuation (the period) because it changes the way a format <add/>. There must be a way to detect this but it isn’t obvious to me.

 

Thanks in advance for any help.

 

Steve