Jump to content

Append/Including element inside <a><div>Data</div></a> returns abnormal weird output.


Azamat
 Share

Recommended Posts

Hello guys,

I`m trying to figure out how I can use div inside anchor tag. The kvs saves my html then returns duplicated data. All tags are closed correctly. Below are example.

 

<a href="{{$lang.urls.videos}}" class="nav-link video__dropdown-toggle {{if $page_id=='videos_list_latest'}}active{{/if}}" id="item2">{{$lang.header.primary_menu_video}}
                                                <ul class="nav_videos_dropdown nav_dropdown">
                                                      <li class="item">
														<a href="{{$lang.urls.videos_rated}}">
															<span class="wrap-icon"><svg class="svg-icon"><use xlink:href='#icon-like'/></svg></span>
															<span class="text">Best Videos</span>
														</a>
													</li>
													<li class="item">
														<a href="{{$lang.urls.videos_viewed}}">
															<span class="wrap-icon"><svg class="svg-icon"><use xlink:href='#icon-view'/></svg></span>
															<span class="text">Most Viewed</span>
														</a>
													</li>
													<li class="item">
														<a href="{{$lang.urls.videos_commented}}">
															<span class="wrap-icon"><svg class="svg-icon"><use xlink:href='#icon-comments'/></svg></span>
															<span class="text">Most Commented</span>
														</a>
													</li>
													<li class="item">
														<a href="{{$lang.urls.videos_recommended}}">
															<span class="wrap-icon"><svg class="svg-icon"><use xlink:href='#icon-star'/></svg></span>
															<span class="text">Recommended</span>
														</a>
													</li>
													<li class="item">
														<a href="{{$lang.urls.playlists}}">
															<span class="wrap-icon"><svg class="svg-icon"><use xlink:href='#icon-playlist'/></svg></span>
															<span class="text">Playlists</span>
														</a>
													</li>
															
                                                </ul>
                                                </a>

 

but its not getting included in the anchor tag instead it returns this

 

<ul class="nav_videos_dropdown nav_dropdown"><a href="https://beta.shooshtime.com/videos/" class="nav-link video__dropdown-toggle active" id="item2">
                                                      </a><li class="item"><a href="https://beta.shooshtime.com/videos/" class="nav-link video__dropdown-toggle active" id="item2">
														</a><a href="https://beta.shooshtime.com/videos/rated/">
															<span class="wrap-icon"><svg class="svg-icon"><use xlink:href="#icon-like"></use></svg></span>
															<span class="text">Best Videos</span>
														</a>
													</li>
													<li class="item">
														<a href="https://beta.shooshtime.com/videos/viewed/">
															<span class="wrap-icon"><svg class="svg-icon"><use xlink:href="#icon-view"></use></svg></span>
															<span class="text">Most Viewed</span>
														</a>
													</li>
													<li class="item">
														<a href="https://beta.shooshtime.com/videos/comments/">
															<span class="wrap-icon"><svg class="svg-icon"><use xlink:href="#icon-comments"></use></svg></span>
															<span class="text">Most Commented</span>
														</a>
													</li>
													<li class="item">
														<a href="https://beta.shooshtime.com/videos/recommended/">
															<span class="wrap-icon"><svg class="svg-icon"><use xlink:href="#icon-star"></use></svg></span>
															<span class="text">Recommended</span>
														</a>
													</li>
													<li class="item">
														<a href="https://beta.shooshtime.com/playlists/">
															<span class="wrap-icon"><svg class="svg-icon"><use xlink:href="#icon-playlist"></use></svg></span>
															<span class="text">Playlists</span>
														</a>
													</li>
															
                                                </ul>

Any suggestions?

 

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...