Problem
The body_template was using <%- body %> which applies HTML entity
escaping in Lodash templates. This caused HTML content like <img> tags
to be converted to <img> in backport PR descriptions.
For example, a source PR with:
<img width="1932" height="1200" alt="image" src="..." />Would become in the backport PR:
<img width="1932" height="1200" alt="image" src="..." />
Solution
Changed <%- body %> to <%= body %> to preserve the original PR body
content without HTML escaping.
References
- Lodash template docs: https://lodash.com/docs/4.17.15#template
<%- ... %>: HTML-escape interpolated value<%= ... %>: Interpolate value without escaping
Co-authored-by: Amp amp@ampcode.com