title: How to set text in a QLabel and display '<>' characters?
body: <p>Using PySide2 (basically PyQt5), I'm trying to <code>setText</code> in a QLabel that has the characters '&lt;' and '>' in the string.  But, since these characters are used to modify the font, anything within those two characters disappears.  I tried escaping them with a backslash, but it still doesn't seem to work...</p>
  
  <p>How can I get the '&lt;' and '>' characters to show up in the QLabel?</p>
  
  <p>EDIT: here's a bit what my code is doing (just snagged the important parts):</p>
  
  <pre><code># color and text get set at various places in my code (len_infs is just the length of the
  #    influence item list - hopefully that's obvious...)
  #
  color = '#FF0000'
  text = 'Influence count &amp;lt%d&amp;gt exceeds minimum row count...' %len_infs
  
  # status_label is a QLabel that displays the text in the appropriate color within the label
  #
  status_label.setText('status: &lt;font color=%s&gt;%s&lt;/font&gt;' %(color, text))
  </code></pre>
  
  <p>As you can see, I'm using <code>&amp;lt</code> and <code>&amp;gt</code> in the string based on ekhumoro's suggestion, but I do not get '&lt;' or '>' in the resulting QLabel text</p>
  
  <p>I want it to print <code>status: Influence count &lt;7&gt; exceeds minimum row count...</code></p>
  
  <p>but it actually prints <code>status: Influence count &amp;lt7&amp;gt exceeds minimum row count...</code></p>
  
  <p>In both, 'status:' is white, while the rest is red as intended.</p>
  
  <p>NOTE: Using <code>'&lt;%d&gt;'</code> in the string results in <code>status: Influence count  exceeds minimum row count...</code></p>
  
  <p>What else do I need to do to format the string properly?</p>