Added getContentAttr method to retrieve content value of :after pseudo selector