equal-including-properties

equal-including-properties is a built-in function in `C source code'.

(equal-including-properties O1 O2)

Return t if two Lisp objects have similar structure and contents.
This is like `equal' except that it compares the text properties
of strings. (`equal' ignores text properties.)