add function to trim unsupported tags