Skip to content

meta-description field uses encoded html tags #960

Description

@alexlehm

LinkStack version

4.8.5

Description

When accessing a profile page generated with Linkstack, the meta description field uses html-encoded tags like "<p>" which ends up as html text in the parsed description for tools that evaluate the field, the cleaned-up code is in meta og:description which works better.

Details about your system

I am currently using linkstapel.de and linklist.me which both show the same effect

How to reproduce

publish a profile page and evaluate it with a tool that parses description, e.g. I used Linkding to bookmark
the result looks like this:

Image

Possible Solution

I assume the file resources/views/linkstack/modules/meta.blade.php#L18 is reponsible, however there is a striptags call included, maybe this is done somehow differently

Additional Context

No response

Activity

  1. MCDevel commented on Jul 11, 2026

    @MCDevel

    I have the same Problem with my own Instance. Is there maybe a Workaround or is a fix planned?

  2. MCDevel commented on Jul 11, 2026

    @MCDevel

    Found a Workaround(only for Admins):
    Go to your Linkstack directory under /resources/views/ and edit home.blade.php
    change Line 23 to
    <meta property="og:description" content="@if($message->home_message == 'default'){{ e(strip_tags(html_entity_decode(__('messages.HOME.MESSAGE')))) }}@else{{ e(strip_tags(html_entity_decode($message->home_message))) }}@endif">
    and to fix the problem that it can't show your Image:
    if you are a User make sure that you uploaded a png or jpg and as a admin upload a png or jpg version of your logo or if you want to use svg then under /assets/linkstack/images/ add your logo as a png version(the name should be the same as the already existing avatar_(numbers).svg

    I have created a commit that fix the problem c5cf97b

  3. added a commit that references this issue on Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions