code: public Element attribute(String attribute, Object value)
      {
          if (attributeMap==null)
              attributeMap=new Hashtable(10);
          
          if (value!=null)
          {
              if (value instanceof String && ((String)value).indexOf('"')!=-1)
              {
                  String s=(String)value;
                  int q=0;
                  while((q=s.indexOf('"',q))>=0)
                  {
                      s=s.substring(0,q)+"&quot;"+s.substring(++q);
                      q+=6;
                  }
                  value=s;
              }
              
              attributeMap.put(attribute,"\""+value+'"');
          }
          return this;
      }
docs: Add quoted element Attributes and value.
  @param attribute String of HTML attribute tag
  @param value String value of the attribute to be quoted
  @return This Element so calls can be chained.