I am working on an Angular node-based application, the nodes in which are html tables containing <textarea>
. When I try to generate project previews using html2canvas
, neither the text in <textarea>
nor <mat-icons>
are rendered, maybe it’s the same problem.
Demo: https://stackblitz.com/edit/stackblitz-starters-zjkz5q
Here is the expectation/result:
And also the html structure of the component:
2
Answers
Another solution I just found is to use
dom-to-image
package:Please try to use the below code: