My Business
2.8K members online now
2.8K members online now
For developers who are using the Google My Business API to manage locations
Guide Me

\n is getting replaced by <br> in review replies

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

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 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,-73.9775512,17z/data=!4m7!3m6!1s0...


am i missing something or is there any special way to indicate new lines to GMB API?




1 Expert replyverified_user

Re: \n is getting replaced by <br> in review replies

Google Employee
# 2
Google Employee

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