We could for example add an enum to ensure that, for example:
enum NeedsEscape<T> {
Yes(T),
No(T),
}
Where NeedsEscape::Yes would be the default. Then it'd just be a matter of implementing From<T: Display> for NeedsEscape to keep it working for most cases. And in case someone want to add a filter that returns content that should not be escaped, they can.
We could for example add an enum to ensure that, for example:
Where
NeedsEscape::Yes
would be the default. Then it'd just be a matter of implementingFrom<T: Display> for NeedsEscape
to keep it working for most cases. And in case someone want to add a filter that returns content that should not be escaped, they can.What do you think @Kijewski ?