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

\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 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

 

https://www.google.co.in/search?sclient=psy-ab&biw=1861&bih=981&site=webhp&q=Vandelay+Industries+129...

 

and it shows nothing instead of new line in maps 

 

https://www.google.co.in/maps/place/Vandelay+Industries/@40.783826,-73.9775512,17z/data=!4m7!3m6!1s0...

 

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

 

Thanks,

Karthik

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!

 

Thanks,

The Google My Business API team