主题 : 12月21日 10-11赛季NBA常规赛 马刺VS太阳 国语 RMVB 886MB【QQ+115+BT】
级别: 总版主

0  发表于: 2010-12-21 10:57

12月21日 10-11赛季NBA常规赛 马刺VS太阳 国语 RMVB 886MB【QQ+115+BT】

管理提醒: 本帖被 付四 执行取消置顶操作(2010-12-23)
请勿透露比赛比分与结果!

频道:

语言:国语

解说:

尺寸:640X480

格式:RMVB

转种者请注明转自天下足球网!



  

QQ中转站和115下载(需要回复才能看到下载地址)

上半场:QQ     115
下半场:QQ     115
[ 此帖被付四在2010-12-23 09:24重新编辑 ]
本帖最近评分记录:
  • 狂热度:+5(mikeblue) 真快阿 谢谢了 马刺和太 ..
  • 级别: 替补球员
    1  发表于: 2010-12-21 12:28

    回 楼主(忘年) 的帖子

    function stripHTML(document,fieldname)
           str = document:getFieldValue(fieldname)
           if str ~=nil then
               mylog("str is not nil");
                   str = string.gsub(str,"<.->","")        
                   str=stripBlank(str);
                   str = convertEntities(str)
                   --mylog("str========\n"..str);
                   document:setFieldValue(fieldname, str)
          else
             mylog("str is  nil");
          end
              
    end

    --strip the blank lines
    function stripBlank(str)
         str = string.gsub(str,"(\n+)","\n")
         return str;
    end

    function convertEntities(str)
      
    local entities =
    {
        -- chinese entities,I get it from http://www.w3schools.com/HTML/html_entities.asp
        --your lua scipts file should save in u8-dos,otherwise some code here will convert into question mark
        nbsp = " ",
        lt = "<",
        gt = ">",
        amp = "&",

    }
           str = string.gsub(str, "&(%a+);",entities)
           return str
    end
    function stripHTML(document,fieldname)
           str = document:getFieldValue(fieldname)
           if str ~=nil then
               mylog("str is not nil");
                   str = string.gsub(str,"<.->","")        
                   str=stripBlank(str);
                   str = convertEntities(str)
                   --mylog("str========\n"..str);
                   document:setFieldValue(fieldname, str)
          else
             mylog("str is  nil");
          end
              
    end

    --strip the blank lines
    function stripBlank(str)
         str = string.gsub(str,"(\n+)","\n")
         return str;
    end

    function convertEntities(str)
      
    local entities =
    {
        -- chinese entities,I get it from http://www.w3schools.com/HTML/html_entities.asp
        --your lua scipts file should save in u8-dos,otherwise some code here will convert into question mark
        nbsp = " ",
        lt = "<",
        gt = ">",
        amp = "&",

    }
           str = string.gsub(str, "&(%a+);",entities)
           return str
    end
    function stripHTML(document,fieldname)
           str = document:getFieldValue(fieldname)
           if str ~=nil then
               mylog("str is not nil");
                   str = string.gsub(str,"<.->","")        
                   str=stripBlank(str);
                   str = convertEntities(str)
                   --mylog("str========\n"..str);
                   document:setFieldValue(fieldname, str)
          else
             mylog("str is  nil");
          end
              
    end

    --strip the blank lines
    function stripBlank(str)
         str = string.gsub(str,"(\n+)","\n")
         return str;
    end

    function convertEntities(str)
      
    local entities =
    {
        -- chinese entities,I get it from http://www.w3schools.com/HTML/html_entities.asp
        --your lua scipts file should save in u8-dos,otherwise some code here will convert into question mark
        nbsp = " ",
        lt = "<",
        gt = ">",
        amp = "&",

    }
           str = string.gsub(str, "&(%a+);",entities)
           return str
    end