def to_s
container = nil
unless body.empty? then
parser = CKHTMLParser.new( parent, body )
parser.repetitions = @repetitions
parser.repetition_index = @repetition_index
container = parser.parse
end
if @attr_page then id = CKElementID.new @attr_page
elsif @attr_action then id = element_id
else id = nil end
@attr_action = application.url( id, @attr_query, @attr_secure )
to_s = '<a'
if @attr_href then to_s << " href=\"#@attr_href\""
else to_s << " href=\"#@attr_action\"" end
if @attr_target then to_s << " target=\"#@attr_target\"" end
to_s << other_attributes_string
to_s << '>'
if @attr_string then to_s << @attr_string
elsif container then to_s << container end
to_s << '</a>'
if @attr_enabled == false then
to_s = @attr_string
end
if to_s.nil? || to_s.length == 0 then
to_s = container
end
to_s
end