Implement THML a tag reference handling