\n is getting replaced by <br> in review replies[ Edited ]
January 2017 - last edited January 2017 by Shalini S
We are using GMB Java driver ( version: v3p1-java-rev20160926) to post review replies.
In review reply text all the \n for new lines are getting replaced by <br> in google search page. And they are getting replaced with empty in maps.google.com page.
For example: We sent following review reply text for review from user Sasidhar Reddy
Thanks for the review. We appreciate your time in writing the review. \n Please visit us again!
and in search page it shows <br> instead showing new line
and it shows nothing instead of new line in maps
am i missing something or is there any special way to indicate new lines to GMB API?
Re: \n is getting replaced by <br> in review replies
Hi @Karthik D,
No, currently there is no way to indicate new lines in comment field for the ReviewReply in Google My Business API. If you will add multiple lines in your review reply, it will always show as a single line on Google Maps and Google Search.
We’ll announce new features of the Google My Business API when they become available on both this board and the Google Developers site. Please stay tuned for updates!
The Google My Business API team