weixin_33712881 2018-01-30 09:03 采纳率: 0%
浏览 13

标签未解释

I have a problem with my script.

I Insert in my bdd my mails thanks to the Outlook API. To make an Insert I get the source code of my mail then insert it, so far no problem.

After that I make a select to display the mail in another page. My problem is that

the source code is not interpreted

, it shows me all the tags, I don't understand why it doesn't read them.

my echo that displays my emails following the SELECT. My variable $result[body] displays the source code of the email... How do I force it to convert?

 echo nl2br('<!DOCTYPE html>'.'<div class="emailBody">'.'<div class="list-group-item-heading premier">' . $result[from_mail] . '</div>' ."
". '<div class="second">' . $result[recei] .'</div>' ."
". '<div id="post1" class="trois azerty">' . '<p class="azerty bodypreview_1">' . $result[subject]. '</p>'."
".'<div class="demasquer">' .'<p class="body_1">'.$result[body].'</p>'.")".'</div>'.'</div>'. '</div>');

</div>
  • 写回答

1条回答 默认 最新

  • weixin_33726318 2018-02-01 12:12
    关注

    I've been able to help myself thanks to the use of "html_entity_decode". Now my tags are being interpreted. Correction:

    echo  html_entity_decode('<!DOCTYPE html>'  .'<div class="emailBody">'.'<div class="list-group-item-heading premier">' . $result[from_mail] . '</div>' ."
    ". '<div class="second">' . $result[recei] .'</div>' ."
    ". '<div id="post1" class="trois azerty">' . '<p class="azerty bodypreview_1">' . $result[subject]. '</p>'."
    ". '<head>' .'</head>'.'<div class="demasquer">' .'<p class="body_1">'. $result[body] .'</p>'.'</div>'.'</div>'. '</div>');

    </div>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化
  • ¥15 Mirare PLUS 进行密钥认证?(详解)
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥20 想用ollama做一个自己的AI数据库
  • ¥15 关于qualoth编辑及缝合服装领子的问题解决方案探寻
  • ¥15 请问怎么才能复现这样的图呀