title: How to add line breaks in a widget description in Wordpress?
body: <p>I would like to add line breaks inside a widget description in Wordpress to show in the admin panel the usage instructions, like this:</p>
  
  <pre><code>To format the text use the tags:
  &lt;h3&gt;Subtitle&lt;/h3&gt;
  &lt;strong&gt;Bold&lt;/strong&gt;
  [:pt]Text in Portuguese
  [:en]Text in English
  [:es]Text in Spanish
  </code></pre>
  
  <p>The idea so far is adding spaces using ISO 8859-1 symbol (<code>&amp;nbsp;</code>) which is not the best solution (the description is in portuguese):</p>
  
  <pre><code>register_sidebar( array(
      'name' =&gt; 'Widget',
      'id' =&gt; 'widget-user',
      'description' =&gt; "Para formatar o texto, utilize as tags: &lt;h3&gt;Subtítulo laranja&lt;/h3&gt; &amp;nbsp; &lt;strong&gt;Negrito&lt;/strong&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#91;:pt]Texto em português nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#91;:en]Texto em inglês &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#91;:es]Texto em espanhol &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (o que estiver escrito fora das tags de idioma irão aparecer para todos",
      'before_widget' =&gt; '&lt;div class="widget-user"&gt;&lt;div class="box"&gt;',
      'after_widget' =&gt; '&lt;/div&gt;&lt;/div&gt;',
      'before_title' =&gt; '&lt;h3 class="widget-title"&gt;',
      'after_title' =&gt; '&lt;/h3&gt;',
  ));
  </code></pre>
  
  <p>Different from the itens 'before_widget', 'after_widget', 'before_title' and 'after_title', the 'description' does not accept HTML. If it did, it would be easy to solve by simply escaping HTML I didn't want to be converted in HTML with a php function like <code>htmlspecialchars()</code>.</p>
  
  <p>I have desperately tried these without success:</p>
  
  <pre><code>"description" =&gt; "This is a line &lt;br&gt; break test"    
  "description" =&gt; "This is a line \n break test"    
  "description" =&gt; "This is a line \r break test"
  "description" =&gt; "This is a line \r\n break test"
  "description" =&gt; htmlspecialchars("This is a line &lt;br&gt;break test")
  htmlspecialchars("description") =&gt; "This is a line &lt;br&gt;break test"
  "description" =&gt; htmlentities("This is a line &lt;br&gt;break test")
  "description" =&gt; html_entity_decode("This is a line &lt;br&gt;break test")
  "description" =&gt; nl2br("This is a line &lt;br&gt; break test")
  nl2br("description") =&gt; nl2br("This is a line &lt;br&gt; break test")
  </code></pre>
  
  <p>So, any ideas?</p>