The following is working when the content is no space 

```
<a onclick=fbShareDialog("{\"name\":\"aaaaaaa\"}">

```

but if there is a space between 

```
<a onclick=fbShareDialog("{\"name\":\"bbbbb bbbbb\"}">

```

it throws Uncaught SyntaxError:unexpected token illegal 

as i think all the content is in quotation , why not works?

thanks in advance