title: Inserting custom String between number and decimal - Java DecimalFormat
body: <p>Hello and thank you in advance for the help.</p>
  
  <p>I am having some trouble formatting using a Java function to mark up a price in HTML.</p>
  
  <p>It seems that, no matter what I do, I cannot insert custom content between the numbers and the decimal (throws Illegal Argument Exception). Is there any known way to achieve the following:</p>
  
  <pre><code>NumberFormat nf = getNumberFormat("'&lt;span class=\"dollars\"&gt;'##'&lt;/span&gt;&lt;/span class=\"decimal\"&gt;'.'&lt;/span&gt;&lt;/span class=\"cents\"&gt;'00'&lt;/span&gt;'", locale);
  nf.format(number);
  </code></pre>
  
  <p>Assume locale and number are correctly initialized.</p>