0

I got a problem:

I use sfWidgetFormChoice to make a radio button, but in google chrome a error message is displayed: Entity 'nbsp' not defined

Who knows how to fix it?

Jonas
  • 121,568
  • 97
  • 310
  • 388
Sun Bo
  • 1
  • 2
  • 1
    ` ` is a non-breaking space. That ampersand and semi-colon are probably playing havoc on your code. If you can find it, delete it. – Funk Forty Niner Aug 28 '14 at 00:13
  • Don't know anything about this framework and this seems somewhat unlikely...but that error suspiciously acknowledges   by name as an entity. If there is XML based parsing going on, you have to have a DTD/Schema that that defines named entities used within the markup (of which nbsp is not one by default). See http://stackoverflow.com/questions/9625602/how-to-display-nbsp-in-xml-output – morewry Aug 28 '14 at 03:20
  • Thank you guys, I have already fixed it. Yes, it is about XML.. – Sun Bo Aug 30 '14 at 11:35

1 Answers1

1

make sure you are using  , including the & and the ; (or else it won't work). You can also use   for tab, just so you know

markasoftware
  • 12,292
  • 8
  • 41
  • 69
Suchit kumar
  • 11,809
  • 3
  • 22
  • 44