title: How to URL-encode HTML-escaped text in Twig?
body: <p>I have a string <code>Picture &gt; 1000 words</code>, it is stored HTML-escaped <code>Picture &amp;gt; 1000 words</code>. I need to URL encode the original string to get <code>Picture%20%3E%201000%20words</code></p>
  
  <p>I tried different sequences of filters, but none of them produces the desired result.</p>
  
  <pre><code>{# title = "Picture &amp;gt; 1000 words" #}
  
  {{ title | url_encode(true)  }}
  {{ title | raw | url_encode(true)  }}
  {{ title | url_encode(true) | raw  }}
  </code></pre>
  
  <p>The result is the same in all 3 cases: <code>Picture%20%26gt%3B%201000%20words</code>. How to avoid Twig to encode already escaped text and get the desired outcome?</p>