Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Facebook.ui的javascript中提供html标记?_Javascript_Html_Jspx - Fatal编程技术网

如何在Facebook.ui的javascript中提供html标记?

如何在Facebook.ui的javascript中提供html标记?,javascript,html,jspx,Javascript,Html,Jspx,我使用的是facebook用户界面的发送方法,它由一个描述参数组成,我在其中撰写一条特定的消息。我需要以黑色、粗体、普通字体显示一条特定的文本 代码是这样的, $“发送”。单击函数 { FB.ui({ method: 'apprequests', message: "FaceBook Fri

我使用的是facebook用户界面的发送方法,它由一个描述参数组成,我在其中撰写一条特定的消息。我需要以黑色、粗体、普通字体显示一条特定的文本

代码是这样的, $“发送”。单击函数 {

                                FB.ui({
                                    method: 'apprequests',
                                    message: "FaceBook Friends"
                                },Api); 

            });

            function Api(responses) 
            {      
                var eventName = document.getElementById("eventName").value;

                 var Message ="You have been invited for an event <html><body><font color=\"black\">" + eventName +  "</           font></body></html> " ;     //to give black font to eventName
                //var varMessage ='You have been invited for an event  <html><body><font color="black"><b>' +eventName+ '</b></font></body></html>' ;   

               FB.ui
                ({
                    method: 'send',
                    to: responses.to,
                    name: document.getElementById("eventName").value,
                    link : 'www.google.com', 
                        description: Message

                });
现在它也将html标记作为文本。可以这样显示吗? 欢迎你的意见