我想使用加载HTML :: image的图像创建HTML :: link函数的链接,它指向URL :: route。到目前为止,这是我提出的
{!! HTML::link( URL::route('/'), HTML::image("img.png", "Logo", array('height'=>'14','width'=>'86','border'=>'0'))) !!}
链接有效,但图片没有..它总是如下:
<img src="http://1.2.3.4/img.png" height="14" width="86" border="0" alt="Logo">
但它永远不会显示图像,即使我能够从浏览器访问图像..任何人都可以提供帮助吗?
答案 0 :(得分:1)
尝试以下代码
event.put(CalendarContract.Events.CALENDAR_ID, 1);
event.put(CalendarContract.Events.TITLE, title);
event.put(CalendarContract.Events.DESCRIPTION, description);
event.put(CalendarContract.Events.EVENT_LOCATION, location);
event.put(CalendarContract.Events.DTSTART, sDate);
event.put(CalendarContract.Events.DURATION,"P50S");
event.put(CalendarContract.Events.ALL_DAY, 0);
event.put(CalendarContract.Events.HAS_ALARM, hasAlarm);
event.put(CalendarContract.Events.EVENT_TIMEZONE, timeZone);
event.put(CalendarContract.Events.RRULE, "FREQ=WEEKLY;BYDAY=SA;UNTIL=20151230");
mContext.getContentResolver().insert(baseUri, event);
因为,link()使用实体来转义标题
或简单使用此
对于L4
app.Use(async (context, next) =>
{
var identity = new ClaimsIdentity();
identity.AddClaim(new Claim(ClaimTypes.Name, "Matthias"));
context.User = new ClaimsPrincipal(identity);
await next.Invoke();
});
对于L5
{!! html_entity_decode(HTML :: link(&#34;#&#34;,HTML :: image(&#34; img / logo.png&#34;,&#34; Logo&#34;)))!!} < / p>