Question: I've a student form which there's location inside the form, when I run the app and show the form it'll look like this

> 
> Location : Jl Excel Road Ring No.36 SINGAPORE, 10110
> 
> 
> 

But I want to make the location in two line like this

```
Location : Jl Excel Road Ring No.36
           SINGAPORE, 10110     

```

here's the gsp

```
<td><g:message code="location.label"/></td>
<td>${studentInstance.location}</td>

```

and this is the service in def show

```
def loc = Location.findByTidAndDeleteFlag(params.tid, "N")
    if(loc != null){
        studentInstance.location = loc.address1  + " " + loc.city + ", " + loc.zipCode
    }
    else{
        studentInstance.location = ""
    }

```

Answer: 
Use the *br* tag 

```
studentInstance.location = loc.address1  + "<br/> " + loc.city + ", " + loc.zipCode

```

Then you can render directly the HTML unescaped like this:

```
<%=studentInstance.location%>

```

The default codec is probably HTML in your configuration.
Check the value of `grails.views.default.codec`

For more information read this:
<http://grails.org/doc/2.2.1/ref/Plug-ins/codecs.html>

I believe that starting from Grails 2.3.x the [default views codec is HTML](http://grails.org/doc/2.3.0.M1/guide/security.html#xssPrevention) with XML escaping in order to prevent XSS attacks.
This is a bad approach but you can try

`studentInstance.location = loc.address1 + "<br> " + loc.city + ", " + loc.zipCode`

Generally, I would have each of the element of address available in view so that the styling is flexible in view than in controller, something raw would look like:

```
<td><g:message code="location.label"/></td>
<td>${model.address1} <br> ${model.city}, ${model.zipCode}</td>

```