Strip non-editable content before copying text