In @variable.value i have a string containing html tags, i.e. `<b>aaa</b>`. I want to display this text on a page - hmtl tags should not be displayed as strings but should format the text.

I am not convinced to use of methods: raw or html\_safe.

I would like to display @variable.value on show page with use of javascript. 

I've tried:

show.html:

```
<script>
document.write('<%= @variable.value %>'); #-> <b>aaa</b>
</script>

```

but if i try: 

```
document.write('<b>aaa</b>'); #this works, i get "aaa" bolded

```