Extracting text from markup

This scheme function extracts a string from markup, removing any formatting information.