When I was dealing with the class attribute, I found that multiple class values could not be filtered through the whitelist. For example, <p class="class1 class2 class3"><p>, the whitelist is [class1, class3] and I hope to get<p class="class1 class3"><p>after filtering. How can I achieve this?
When I was dealing with the class attribute, I found that multiple class values could not be filtered through the whitelist. For example,
<p class="class1 class2 class3"><p>
, the whitelist is [class1, class3] and I hope to get<p class="class1 class3"><p>
after filtering. How can I achieve this?