How i can escaping quotes

Hello!
I want to add text into paragraph with quotes.
How I can do it.
Something like: oParagraph.AddText(“Hello “world””);

DocumentBuilder version:7.2
Installation method: deb
OS: mint

Hello @DmitryPozdeyev

To paste a text with quotation marks you have to mask the text with “\” symbol like that:
oParagraph.AddText("Hello \"world\"");

Hello!
I’ve already tried it. Maybe it doesn’t work properly here: ONLYOFFICE Api Documentation - Try now
It is problem only this web page?

Indeed currently there is a problem with certain symbols.
As an alternative, you can use this Docbuilder page to run your scripts but save the document instead. Paste your code into textarea and click ‘Generate Document’.

We are sorry for the inconvenience caused. We are working on it.

Thank you for your answer!

1 Like